D0k-tor commited on
Commit
65c6075
·
1 Parent(s): 179fa33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
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)