Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def generate_image(model_name: str, text: str, image: Image.Image,
|
|
97 |
"""
|
98 |
Generates responses using the selected model for image input.
|
99 |
"""
|
100 |
-
if model_name == "
|
101 |
processor = processor_m
|
102 |
model = model_m
|
103 |
elif model_name == "coreOCR-7B-050325-preview":
|
@@ -153,7 +153,7 @@ def generate_video(model_name: str, text: str, video_path: str,
|
|
153 |
"""
|
154 |
Generates responses using the selected model for video input.
|
155 |
"""
|
156 |
-
if model_name == "
|
157 |
processor = processor_m
|
158 |
model = model_m
|
159 |
elif model_name == "coreOCR-7B-050325-preview":
|
|
|
97 |
"""
|
98 |
Generates responses using the selected model for image input.
|
99 |
"""
|
100 |
+
if model_name == "typhoon-ocr-7b":
|
101 |
processor = processor_m
|
102 |
model = model_m
|
103 |
elif model_name == "coreOCR-7B-050325-preview":
|
|
|
153 |
"""
|
154 |
Generates responses using the selected model for video input.
|
155 |
"""
|
156 |
+
if model_name == "typhoon-ocr-7b":
|
157 |
processor = processor_m
|
158 |
model = model_m
|
159 |
elif model_name == "coreOCR-7B-050325-preview":
|