Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ import cv2
|
|
15 |
|
16 |
from transformers import (
|
17 |
Qwen2_5_VLForConditionalGeneration,
|
|
|
18 |
AutoProcessor,
|
19 |
TextIteratorStreamer,
|
20 |
)
|
@@ -44,7 +45,7 @@ model_x = Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
|
44 |
# Load prithivMLmods/WR30a-Deep-7B-0711
|
45 |
MODEL_ID_T = "NCSOFT/VARCO-VISION-2.0-14B"
|
46 |
processor_t = AutoProcessor.from_pretrained(MODEL_ID_T, trust_remote_code=True)
|
47 |
-
model_t =
|
48 |
MODEL_ID_T, trust_remote_code=True,
|
49 |
torch_dtype=torch.float16).to(device).eval()
|
50 |
|
|
|
15 |
|
16 |
from transformers import (
|
17 |
Qwen2_5_VLForConditionalGeneration,
|
18 |
+
LlavaOnevisionForConditionalGeneration,
|
19 |
AutoProcessor,
|
20 |
TextIteratorStreamer,
|
21 |
)
|
|
|
45 |
# Load prithivMLmods/WR30a-Deep-7B-0711
|
46 |
MODEL_ID_T = "NCSOFT/VARCO-VISION-2.0-14B"
|
47 |
processor_t = AutoProcessor.from_pretrained(MODEL_ID_T, trust_remote_code=True)
|
48 |
+
model_t = LlavaOnevisionForConditionalGeneration.from_pretrained(
|
49 |
MODEL_ID_T, trust_remote_code=True,
|
50 |
torch_dtype=torch.float16).to(device).eval()
|
51 |
|