Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def run_example(image, text_input, system_prompt, model_id="Qwen/Qwen2-VL-7B-Ins
|
|
| 62 |
"content": [
|
| 63 |
{"type": "image", "image": f"data:image;base64,{image_to_base64(image)}"},
|
| 64 |
{"type": "text", "text": system_prompt},
|
| 65 |
-
{"type": "text", "text":
|
| 66 |
],
|
| 67 |
}
|
| 68 |
]
|
|
@@ -120,7 +120,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 120 |
|
| 121 |
gr.Examples(
|
| 122 |
examples=[
|
| 123 |
-
["assets/
|
|
|
|
| 124 |
],
|
| 125 |
inputs=[input_img, text_input, system_prompt],
|
| 126 |
outputs=[model_output_text, parsed_boxes, annotated_image],
|
|
|
|
| 62 |
"content": [
|
| 63 |
{"type": "image", "image": f"data:image;base64,{image_to_base64(image)}"},
|
| 64 |
{"type": "text", "text": system_prompt},
|
| 65 |
+
{"type": "text", "text": text_input},
|
| 66 |
],
|
| 67 |
}
|
| 68 |
]
|
|
|
|
| 120 |
|
| 121 |
gr.Examples(
|
| 122 |
examples=[
|
| 123 |
+
["assets/image1.jpg", "detect goats", default_system_prompt],
|
| 124 |
+
["assets/image2.jpg", "detect blue button", default_system_prompt],
|
| 125 |
],
|
| 126 |
inputs=[input_img, text_input, system_prompt],
|
| 127 |
outputs=[model_output_text, parsed_boxes, annotated_image],
|