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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -317,8 +317,8 @@ 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 = [
324
  {"role":"user",
 
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
+ text = normalize_values(text, target_max=500)
322
 
323
  messages = [
324
  {"role":"user",