Spaces:
Runtime error
Runtime error
Commit
•
b3d65ca
1
Parent(s):
4ed47d4
Update click event to expose a Gradio API endpoint (#1)
Browse files- Update click event to expose a Gradio API endpoint (55d5524ca0285555e1da7862fc9525598faa110d)
Co-authored-by: Florent Gbelidji <florentgbelidji@users.noreply.huggingface.co>
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()
|