Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -108,10 +108,11 @@ def process_input(text=None, file=None, task_history=None):
|
|
108 |
|
109 |
if "<box>" in response and image_path:
|
110 |
image_with_boxes_path = draw_boxes(image_path, response)
|
111 |
-
|
|
|
112 |
else:
|
113 |
cleaned_response = clean_response(response)
|
114 |
-
return [("
|
115 |
|
116 |
with gr.Blocks() as demo:
|
117 |
gr.Markdown("""
|
|
|
108 |
|
109 |
if "<box>" in response and image_path:
|
110 |
image_with_boxes_path = draw_boxes(image_path, response)
|
111 |
+
cleaned_response = clean_response(response)
|
112 |
+
return [("Qwen-VL_Image", (image_with_boxes_path, "Image with boxes")), ("Qwen-VL_Chat", cleaned_response)], task_history
|
113 |
else:
|
114 |
cleaned_response = clean_response(response)
|
115 |
+
return [("Qwen-VL_Chat", cleaned_response)], task_history
|
116 |
|
117 |
with gr.Blocks() as demo:
|
118 |
gr.Markdown("""
|