florentgbelidji HF staff commited on
Commit
55d5524
1 Parent(s): 4ed47d4

Update click event to expose a Gradio API endpoint

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -187,7 +187,8 @@ with demo:
187
  image_button = gr.Button("Run")
188
  image_button.click(fn=inference,
189
  inputs=inp,
190
- outputs=out)
 
191
 
192
 
193
  demo.launch()
 
187
  image_button = gr.Button("Run")
188
  image_button.click(fn=inference,
189
  inputs=inp,
190
+ outputs=out,
191
+ api_name="clip_caption")
192
 
193
 
194
  demo.launch()