Spaces:
Running
Running
Commit
·
4874ce8
1
Parent(s):
343aed7
Update app.py
Browse files
app.py
CHANGED
|
@@ -193,7 +193,14 @@ with gr.Blocks() as demo:
|
|
| 193 |
txt_output = gr.Textbox(value="", label="Output")
|
| 194 |
btn = gr.Button(value="Submit")
|
| 195 |
btn.click(image_classifier, inputs=[uploaded_image], outputs=[txt_output])
|
| 196 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
#demo = gr.Interface(fn=image_classifier, inputs=uploaded_image, outputs="label", title=title, description=description)
|
| 198 |
#demo.launch(show_api=False)
|
| 199 |
demo.launch()
|
|
|
|
| 193 |
txt_output = gr.Textbox(value="", label="Output")
|
| 194 |
btn = gr.Button(value="Submit")
|
| 195 |
btn.click(image_classifier, inputs=[uploaded_image], outputs=[txt_output])
|
| 196 |
+
gr.Markdown("## Image Examples")
|
| 197 |
+
gr.Examples(
|
| 198 |
+
examples=['low.png'],
|
| 199 |
+
inputs=uploaded_image,
|
| 200 |
+
outputs=[txt_output],
|
| 201 |
+
fn=image_classifier,
|
| 202 |
+
cache_examples=True,
|
| 203 |
+
)
|
| 204 |
#demo = gr.Interface(fn=image_classifier, inputs=uploaded_image, outputs="label", title=title, description=description)
|
| 205 |
#demo.launch(show_api=False)
|
| 206 |
demo.launch()
|