Tonic commited on
Commit
89be989
·
1 Parent(s): 1ea7c93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- return [("bot", response, (image_with_boxes_path, "Qwen Image Caption"))], task_history
 
112
  else:
113
  cleaned_response = clean_response(response)
114
- return [("bot", cleaned_response)], task_history
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("""