mrdbourke commited on
Commit
605b7f7
Β·
verified Β·
1 Parent(s): 88e1b52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -677,7 +677,7 @@ def infer_on_image(input_image):
677
  input_width,
678
  input_height)
679
 
680
- return output_image_1, total_time_thinking, output_image_2, total_time_no_thinking
681
 
682
  # Want input to be a single image
683
  # Outputs to be time + image
@@ -691,8 +691,10 @@ See the app.py file for the different prompts used."""
691
  demo = gr.Interface(fn=infer_on_image,
692
  inputs=gr.Image(label="Input image"),
693
  outputs=[gr.Image(label="Image w/ thinking tags"),
 
694
  gr.Text(label="Inference time w/ thinking tags"),
695
  gr.Image(label="Image w/o thinking tags"),
 
696
  gr.Text(label="Inference time w/o thinking tags")],
697
  title="Qwen2.5-VL Food Detection πŸ‘οΈπŸ”",
698
  description=description)
 
677
  input_width,
678
  input_height)
679
 
680
+ return output_image_1, response, total_time_thinking, output_image_2, response_no_thinking, total_time_no_thinking
681
 
682
  # Want input to be a single image
683
  # Outputs to be time + image
 
691
  demo = gr.Interface(fn=infer_on_image,
692
  inputs=gr.Image(label="Input image"),
693
  outputs=[gr.Image(label="Image w/ thinking tags"),
694
+ gr.Text(label="Raw output w/ thinking tags"),
695
  gr.Text(label="Inference time w/ thinking tags"),
696
  gr.Image(label="Image w/o thinking tags"),
697
+ gr.Text(label="Raw output w/o thinking tags"),
698
  gr.Text(label="Inference time w/o thinking tags")],
699
  title="Qwen2.5-VL Food Detection πŸ‘οΈπŸ”",
700
  description=description)