Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def image_to_base64(image):
|
|
34 |
|
35 |
q_model_name = "Qwen/Qwen2-VL-2B-Instruct"
|
36 |
#q_model = Qwen2VLForConditionalGeneration.from_pretrained(q_model_name, torch_dtype="auto").cuda().eval()
|
37 |
-
q_model = Qwen2VLForConditionalGeneration.from_pretrained(q_model_name, torch_dtype="
|
38 |
q_processor = AutoProcessor.from_pretrained(q_model_name, trust_remote_code=True)
|
39 |
|
40 |
def get_qwen_op(image_file, model, processor):
|
|
|
34 |
|
35 |
q_model_name = "Qwen/Qwen2-VL-2B-Instruct"
|
36 |
#q_model = Qwen2VLForConditionalGeneration.from_pretrained(q_model_name, torch_dtype="auto").cuda().eval()
|
37 |
+
q_model = Qwen2VLForConditionalGeneration.from_pretrained(q_model_name, torch_dtype="auto").eval()
|
38 |
q_processor = AutoProcessor.from_pretrained(q_model_name, trust_remote_code=True)
|
39 |
|
40 |
def get_qwen_op(image_file, model, processor):
|