Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ def generate_image(model_name: str, text: str, image: Image.Image,
|
|
143 |
elif model_name == "SmolDocling-256M-preview":
|
144 |
processor = processor_x
|
145 |
model = model_x
|
146 |
-
elif model_name == "
|
147 |
processor = processor_l
|
148 |
model = model_l
|
149 |
else:
|
@@ -230,7 +230,7 @@ def generate_video(model_name: str, text: str, video_path: str,
|
|
230 |
elif model_name == "SmolDocling-256M-preview":
|
231 |
processor = processor_x
|
232 |
model = model_x
|
233 |
-
elif model_name == "
|
234 |
processor = processor_l
|
235 |
model = model_l
|
236 |
else:
|
@@ -353,7 +353,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
353 |
with gr.Column():
|
354 |
output = gr.Textbox(label="Output", interactive=False, lines=3, scale=2)
|
355 |
model_choice = gr.Radio(
|
356 |
-
choices=["Nanonets-OCR-s", "SmolDocling-256M-preview",
|
357 |
label="Select Model",
|
358 |
value="Nanonets-OCR-s"
|
359 |
)
|
|
|
143 |
elif model_name == "SmolDocling-256M-preview":
|
144 |
processor = processor_x
|
145 |
model = model_x
|
146 |
+
elif model_name == "Typhoon-OCR-7B":
|
147 |
processor = processor_l
|
148 |
model = model_l
|
149 |
else:
|
|
|
230 |
elif model_name == "SmolDocling-256M-preview":
|
231 |
processor = processor_x
|
232 |
model = model_x
|
233 |
+
elif model_name == "Typhoon-OCR-7B":
|
234 |
processor = processor_l
|
235 |
model = model_l
|
236 |
else:
|
|
|
353 |
with gr.Column():
|
354 |
output = gr.Textbox(label="Output", interactive=False, lines=3, scale=2)
|
355 |
model_choice = gr.Radio(
|
356 |
+
choices=["Nanonets-OCR-s", "SmolDocling-256M-preview", "MonkeyOCR-Recognition", "Typhoon-OCR-7B"],
|
357 |
label="Select Model",
|
358 |
value="Nanonets-OCR-s"
|
359 |
)
|