Update app.py
Browse files
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 |
-
|
| 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 = [
|