Spaces:
Sleeping
Sleeping
catastrophic refactor of "/predict" to "predict" in api_name
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ def create_demo():
|
|
| 180 |
fn=predict_gradio,
|
| 181 |
inputs=[image_upload, image_url, top_k_slider],
|
| 182 |
outputs=[output_text, json_output],
|
| 183 |
-
api_name="
|
| 184 |
)
|
| 185 |
|
| 186 |
return demo
|
|
|
|
| 180 |
fn=predict_gradio,
|
| 181 |
inputs=[image_upload, image_url, top_k_slider],
|
| 182 |
outputs=[output_text, json_output],
|
| 183 |
+
api_name="predict" # IMPORTANT for gradio_client
|
| 184 |
)
|
| 185 |
|
| 186 |
return demo
|