Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,4 +71,11 @@ with gr.Blocks() as demo:
|
|
71 |
out = gr.outputs.Textbox(type="text",label="Captions")
|
72 |
|
73 |
button.click(predict, inputs=[img], outputs=[out])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
demo.launch(debug=True)
|
|
|
71 |
out = gr.outputs.Textbox(type="text",label="Captions")
|
72 |
|
73 |
button.click(predict, inputs=[img], outputs=[out])
|
74 |
+
gr.Examples(
|
75 |
+
examples=[os.path.join(os.path.dirname(__file__), "example1.jpg")],
|
76 |
+
inputs=img,
|
77 |
+
outputs=out,
|
78 |
+
fn=predict,
|
79 |
+
cache_examples=True,
|
80 |
+
)
|
81 |
demo.launch(debug=True)
|