Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,14 @@ with gr.Blocks(theme=gr.themes.Soft()) as interface:
|
|
| 107 |
image_input.change(fn=update_submit_state, inputs=image_input, outputs=submit_button)
|
| 108 |
submit_button.click(fn=predict, inputs=image_input, outputs=output_label)
|
| 109 |
|
| 110 |
-
gr.Examples(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
if __name__ == "__main__":
|
| 113 |
interface.launch()
|
|
|
|
| 107 |
image_input.change(fn=update_submit_state, inputs=image_input, outputs=submit_button)
|
| 108 |
submit_button.click(fn=predict, inputs=image_input, outputs=output_label)
|
| 109 |
|
| 110 |
+
gr.Examples(
|
| 111 |
+
examples=examples,
|
| 112 |
+
inputs=image_input,
|
| 113 |
+
outputs=output_label,
|
| 114 |
+
fn=predict,
|
| 115 |
+
cache_examples=True
|
| 116 |
+
)
|
| 117 |
+
|
| 118 |
|
| 119 |
if __name__ == "__main__":
|
| 120 |
interface.launch()
|