Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,14 +49,26 @@ def array_to_image_path(image_array):
|
|
| 49 |
return full_path
|
| 50 |
|
| 51 |
models = {
|
| 52 |
-
"Qwen/Qwen2.5-VL-7B-Instruct": Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
|
|
|
|
|
|
| 53 |
|
|
|
|
|
|
|
|
|
|
| 54 |
}
|
| 55 |
|
| 56 |
processors = {
|
| 57 |
-
"Qwen/Qwen2.5-VL-7B-Instruct": AutoProcessor.from_pretrained(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
}
|
| 59 |
|
|
|
|
| 60 |
DESCRIPTION = "This demo uses[Qwen2.5-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct)"
|
| 61 |
|
| 62 |
kwargs = {}
|
|
|
|
| 49 |
return full_path
|
| 50 |
|
| 51 |
models = {
|
| 52 |
+
"Qwen/Qwen2.5-VL-7B-Instruct": Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
| 53 |
+
"Qwen/Qwen2.5-VL-7B-Instruct", trust_remote_code=True, torch_dtype="auto"
|
| 54 |
+
).cuda().eval(),
|
| 55 |
|
| 56 |
+
"medieval-data/qwen2.5-vl-old-church-slavonic": Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
| 57 |
+
"medieval-data/qwen2.5-vl-old-church-slavonic", trust_remote_code=True, torch_dtype="auto"
|
| 58 |
+
).cuda().eval()
|
| 59 |
}
|
| 60 |
|
| 61 |
processors = {
|
| 62 |
+
"Qwen/Qwen2.5-VL-7B-Instruct": AutoProcessor.from_pretrained(
|
| 63 |
+
"Qwen/Qwen2.5-VL-7B-Instruct", trust_remote_code=True
|
| 64 |
+
),
|
| 65 |
+
|
| 66 |
+
"medieval-data/qwen2.5-vl-old-church-slavonic": AutoProcessor.from_pretrained(
|
| 67 |
+
"medieval-data/qwen2.5-vl-old-church-slavonic", trust_remote_code=True
|
| 68 |
+
)
|
| 69 |
}
|
| 70 |
|
| 71 |
+
|
| 72 |
DESCRIPTION = "This demo uses[Qwen2.5-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct)"
|
| 73 |
|
| 74 |
kwargs = {}
|