Spaces:
Runtime error
Runtime error
Commit
•
55d5524
1
Parent(s):
4ed47d4
Update click event to expose a Gradio API endpoint
Browse files
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()
|