Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,8 @@ model_o = Qwen2VLForConditionalGeneration.from_pretrained(
|
|
56 |
torch_dtype=torch.float16
|
57 |
).to(device).eval()
|
58 |
|
59 |
-
# Load
|
60 |
-
MODEL_ID_J = "prithivMLmods/
|
61 |
processor_j = AutoProcessor.from_pretrained(MODEL_ID_J, trust_remote_code=True)
|
62 |
model_j = Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
63 |
MODEL_ID_J,
|
@@ -105,7 +105,7 @@ def generate_image(model_name: str, text: str, image: Image.Image,
|
|
105 |
elif model_name == "Typhoon-OCR-3B":
|
106 |
processor = processor_t
|
107 |
model = model_t
|
108 |
-
elif model_name == "
|
109 |
processor = processor_j
|
110 |
model = model_j
|
111 |
else:
|
@@ -161,7 +161,7 @@ def generate_video(model_name: str, text: str, video_path: str,
|
|
161 |
elif model_name == "Typhoon-OCR-3B":
|
162 |
processor = processor_t
|
163 |
model = model_t
|
164 |
-
elif model_name == "
|
165 |
processor = processor_j
|
166 |
model = model_j
|
167 |
else:
|
@@ -288,7 +288,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
288 |
#download_btn = gr.Button("Download Result.md"
|
289 |
|
290 |
model_choice = gr.Radio(
|
291 |
-
choices=["DREX-062225-7B-exp", "
|
292 |
label="Select Model",
|
293 |
value="DREX-062225-7B-exp"
|
294 |
)
|
|
|
56 |
torch_dtype=torch.float16
|
57 |
).to(device).eval()
|
58 |
|
59 |
+
# Load Lumian-VLR-7B-Thinking
|
60 |
+
MODEL_ID_J = "prithivMLmods/Lumian-VLR-7B-Thinking"
|
61 |
processor_j = AutoProcessor.from_pretrained(MODEL_ID_J, trust_remote_code=True)
|
62 |
model_j = Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
63 |
MODEL_ID_J,
|
|
|
105 |
elif model_name == "Typhoon-OCR-3B":
|
106 |
processor = processor_t
|
107 |
model = model_t
|
108 |
+
elif model_name == "Lumian-VLR-7B-Thinking":
|
109 |
processor = processor_j
|
110 |
model = model_j
|
111 |
else:
|
|
|
161 |
elif model_name == "Typhoon-OCR-3B":
|
162 |
processor = processor_t
|
163 |
model = model_t
|
164 |
+
elif model_name == "Lumian-VLR-7B-Thinking":
|
165 |
processor = processor_j
|
166 |
model = model_j
|
167 |
else:
|
|
|
288 |
#download_btn = gr.Button("Download Result.md"
|
289 |
|
290 |
model_choice = gr.Radio(
|
291 |
+
choices=["DREX-062225-7B-exp", "Lumian-VLR-7B-Thinking", "olmOCR-7B-0225-preview", "Typhoon-OCR-3B"],
|
292 |
label="Select Model",
|
293 |
value="DREX-062225-7B-exp"
|
294 |
)
|