Spaces:
Runtime error
Runtime error
shcho-isle
commited on
Commit
•
61827ce
1
Parent(s):
c9e8c8c
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from qwen_vl_utils import process_vision_info
|
|
6 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
7 |
"Qwen/Qwen2-VL-72B-Instruct", torch_dtype="auto", device_map="auto"
|
8 |
)
|
9 |
-
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-
|
10 |
|
11 |
# Define a function to process input and generate a response
|
12 |
def generate_response(image, text):
|
|
|
6 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
7 |
"Qwen/Qwen2-VL-72B-Instruct", torch_dtype="auto", device_map="auto"
|
8 |
)
|
9 |
+
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-7B-Instruct")
|
10 |
|
11 |
# Define a function to process input and generate a response
|
12 |
def generate_response(image, text):
|