prithivMLmods commited on
Commit
34bcf17
·
verified ·
1 Parent(s): c97526c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -317,7 +317,7 @@ def generate_video(model_name: str, text: str, video_path: str,
317
  if model_name == "SmolDocling-256M-preview":
318
  if any(tok in text for tok in ["OTSL", "code"]):
319
  imgs = [add_random_padding(img) for img in imgs]
320
- if any(tok in text for tok in ["OCR at text", "Identify element", "formula"]):
321
  pm.text.normalize_values(text, target_max=500)
322
 
323
  messages = [
 
317
  if model_name == "SmolDocling-256M-preview":
318
  if any(tok in text for tok in ["OTSL", "code"]):
319
  imgs = [add_random_padding(img) for img in imgs]
320
+ if any(tok in text for tok in ["OCR at text", "Identify element", "formula"]):
321
  pm.text.normalize_values(text, target_max=500)
322
 
323
  messages = [