nhatipoglu commited on
Commit
a830944
1 Parent(s): 294fbfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -115,13 +115,13 @@ with gr.Blocks(css=css) as demo:
115
  with gr.Column():
116
  input_img = gr.Image(label="Input Image", type="pil")
117
  model_selector = gr.Dropdown(choices=list(models.keys()), label="Model", value="Qwen/Qwen2-VL-7B-Instruct")
118
- system_prompt = gr.Textbox(label="System Prompt", value=default_system_prompt)
119
  text_input = gr.Textbox(label="User Prompt")
120
  submit_btn = gr.Button(value="Submit")
121
  with gr.Column():
122
  model_output_text = gr.Textbox(label="Model Output Text")
123
- parsed_boxes = gr.Textbox(label="Parsed Boxes")
124
- annotated_image = gr.Image(label="Annotated Image")
125
 
126
  gr.Examples(
127
  examples=[
@@ -137,6 +137,6 @@ with gr.Blocks(css=css) as demo:
137
  label="Try examples"
138
  )
139
 
140
- submit_btn.click(run_example, [input_img, text_input, system_prompt, model_selector], [model_output_text, parsed_boxes, annotated_image])
141
 
142
  demo.launch(debug=True)
 
115
  with gr.Column():
116
  input_img = gr.Image(label="Input Image", type="pil")
117
  model_selector = gr.Dropdown(choices=list(models.keys()), label="Model", value="Qwen/Qwen2-VL-7B-Instruct")
118
+ #system_prompt = gr.Textbox(label="System Prompt", value=default_system_prompt)
119
  text_input = gr.Textbox(label="User Prompt")
120
  submit_btn = gr.Button(value="Submit")
121
  with gr.Column():
122
  model_output_text = gr.Textbox(label="Model Output Text")
123
+ #parsed_boxes = gr.Textbox(label="Parsed Boxes")
124
+ #annotated_image = gr.Image(label="Annotated Image")
125
 
126
  gr.Examples(
127
  examples=[
 
137
  label="Try examples"
138
  )
139
 
140
+ submit_btn.click(run_example, [input_img, text_input,model_selector], [model_output_text])
141
 
142
  demo.launch(debug=True)