Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ with gr.Blocks(theme='shivi/calm_seafoam', css=css, title="知觉demo") as iface
|
|
140 |
|
141 |
# Set up the event listeners
|
142 |
submit_btn.click(main, inputs=[text_input, image_input, unit], outputs=output_box)
|
143 |
-
gr.Examples(EXAMPLES, [image_input, text_input])
|
144 |
gr.Markdown(LICENSE)
|
145 |
|
146 |
#gr.close_all()
|
|
|
140 |
|
141 |
# Set up the event listeners
|
142 |
submit_btn.click(main, inputs=[text_input, image_input, unit], outputs=output_box)
|
143 |
+
gr.Examples(fn=main, examples=EXAMPLES, inputs=[image_input, text_input], outputs=output_box, cache_examples="lazy")
|
144 |
gr.Markdown(LICENSE)
|
145 |
|
146 |
#gr.close_all()
|