Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -138,6 +138,10 @@ with gr.Blocks(css=css) as block:
|
|
138 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
139 |
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
140 |
|
|
|
|
|
|
|
|
|
141 |
gr.HTML(article)
|
142 |
|
143 |
submit_btn.click(fn=inference, inputs=[input_image,mode_input,flavor_input], outputs=[output_text, share_button, community_icon, loading_icon])
|
|
|
138 |
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
139 |
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
140 |
|
141 |
+
examples=[['27E894C4-9375-48A1-A95D-CB2425416B4B.png'], ['DB362F56-BA98-4CA1-A999-A25AA94B723B.png']]
|
142 |
+
ex = gr.Examples(examples=examples, fn=inference, inputs=[input_image, "best", 4], outputs=[output_text, share_button, community_icon, loading_icon], cache_examples=True, run_on_click=True)
|
143 |
+
ex.dataset.headers = [""]
|
144 |
+
|
145 |
gr.HTML(article)
|
146 |
|
147 |
submit_btn.click(fn=inference, inputs=[input_image,mode_input,flavor_input], outputs=[output_text, share_button, community_icon, loading_icon])
|