Spaces:
Sleeping
Sleeping
nhatipoglu
commited on
Commit
•
4959b00
1
Parent(s):
a830944
Update app.py
Browse files
app.py
CHANGED
@@ -130,13 +130,13 @@ with gr.Blocks(css=css) as demo:
|
|
130 |
["assets/2024_09_10_11_07_31.png", "Solve the question", default_system_prompt],
|
131 |
["assets/comics.jpeg", "Describe the since", default_system_prompt],
|
132 |
],
|
133 |
-
inputs=[input_img, text_input
|
134 |
-
outputs=[model_output_text
|
135 |
fn=run_example,
|
136 |
cache_examples=True,
|
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)
|
|
|
130 |
["assets/2024_09_10_11_07_31.png", "Solve the question", default_system_prompt],
|
131 |
["assets/comics.jpeg", "Describe the since", default_system_prompt],
|
132 |
],
|
133 |
+
inputs=[input_img, text_input],
|
134 |
+
outputs=[model_output_text],
|
135 |
fn=run_example,
|
136 |
cache_examples=True,
|
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)
|