fffiloni commited on
Commit
535e3fa
1 Parent(s): 9a25e8c

added some examples

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -68,6 +68,12 @@ with gr.Blocks(css=css) as demo:
68
  with gr.Column():
69
  #caption = gr.Textbox(label="Generated Caption")
70
  story = gr.Textbox(label="generated Story")
 
 
 
 
 
 
71
  submit_btn.click(fn=infer, inputs=[image_in], outputs=[story])
72
 
73
- demo.queue().launch()
 
68
  with gr.Column():
69
  #caption = gr.Textbox(label="Generated Caption")
70
  story = gr.Textbox(label="generated Story")
71
+ gr.Examples(examples=[["./examples/crabby.png"],["./examples/hopper.jpeg"]],
72
+ fn=infer,
73
+ inputs=[image_in],
74
+ outputs=[story],
75
+ cache_examples=True
76
+ )
77
  submit_btn.click(fn=infer, inputs=[image_in], outputs=[story])
78
 
79
+ demo.queue(max_size=12).launch()