Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,7 +187,7 @@ def detect_qwen(image, prompt):
|
|
| 187 |
|
| 188 |
t0 = time.perf_counter()
|
| 189 |
text = processor_qwen.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 190 |
-
image_inputs, video_inputs
|
| 191 |
inputs = processor_qwen(
|
| 192 |
text=[text],
|
| 193 |
images=image_inputs,
|
|
|
|
| 187 |
|
| 188 |
t0 = time.perf_counter()
|
| 189 |
text = processor_qwen.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 190 |
+
image_inputs, video_inputs = process_vision_info(messages)
|
| 191 |
inputs = processor_qwen(
|
| 192 |
text=[text],
|
| 193 |
images=image_inputs,
|