Fancy-MLLM commited on
Commit
f70a6d7
·
verified ·
1 Parent(s): 3a5b7da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -91,23 +91,23 @@ with gr.Blocks(css=Css) as demo:
91
 
92
  with gr.Row():
93
  with gr.Column():
94
- input_image = gr.Image(type="pil", label="Upload"),
95
  input_text = gr.Textbox(label="input your question")
96
  with gr.Row():
97
  with gr.Column():
98
- clear_btn = gr.ClearButton([*input_image, input_text])
99
  with gr.Column():
100
  submit_btn = gr.Button("Submit", variant="primary")
101
 
102
- gr.Examples(
103
- examples=[
104
- ["20250208-205626.jpeg", "How many plums (see the picture) weigh as much as an apple?"],
105
- ["38.jpg", "Each of the digits 2, 3, 4 and 5 will be placed in a square. Then there will be two numbers, which will be added together. What is the biggest number that they could make?"],
106
- ["64.jpg", "Four of the numbers 1,3,4,5 and 7 are written into the boxes so that the calculation is correct.\nWhich number was not used?"],
107
- ],
108
- inputs=[input_image[0], input_text],
109
- label="Example Inputs"
110
- )
111
  with gr.Column():
112
  output_text = gr.Markdown(
113
  label="Generated Response",
 
91
 
92
  with gr.Row():
93
  with gr.Column():
94
+ input_image = gr.Image(type="pil", label="Upload")
95
  input_text = gr.Textbox(label="input your question")
96
  with gr.Row():
97
  with gr.Column():
98
+ clear_btn = gr.ClearButton([input_image, input_text])
99
  with gr.Column():
100
  submit_btn = gr.Button("Submit", variant="primary")
101
 
102
+ # gr.Examples(
103
+ # examples=[
104
+ # ["20250208-205626.jpeg", "How many plums (see the picture) weigh as much as an apple?"],
105
+ # ["38.jpg", "Each of the digits 2, 3, 4 and 5 will be placed in a square. Then there will be two numbers, which will be added together. What is the biggest number that they could make?"],
106
+ # ["64.jpg", "Four of the numbers 1,3,4,5 and 7 are written into the boxes so that the calculation is correct.\nWhich number was not used?"],
107
+ # ],
108
+ # inputs=[input_image[0], input_text],
109
+ # label="Example Inputs"
110
+ # )
111
  with gr.Column():
112
  output_text = gr.Markdown(
113
  label="Generated Response",