Spaces:
Sleeping
Sleeping
ibcplateformes Claude Opus 4.6 commited on
Commit ·
c88afa4
1
Parent(s): 8f53e55
Fix gradio crash: add show_api=False and pin gradio_client 1.3.0
Browse filesThe health check endpoint crashes due to a bug in gradio_client
json_schema_to_python_type with additionalProperties being a bool.
Disabling API docs and pinning compatible gradio_client version.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- app.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -437,4 +437,4 @@ with gr.Blocks(
|
|
| 437 |
|
| 438 |
|
| 439 |
if __name__ == "__main__":
|
| 440 |
-
app.launch(server_name="0.0.0.0")
|
|
|
|
| 437 |
|
| 438 |
|
| 439 |
if __name__ == "__main__":
|
| 440 |
+
app.launch(server_name="0.0.0.0", show_api=False)
|
requirements.txt
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
# Gradio + HuggingFace
|
| 2 |
-
gradio
|
|
|
|
| 3 |
spaces
|
| 4 |
huggingface_hub>=0.23.0
|
| 5 |
|
|
|
|
| 1 |
# Gradio + HuggingFace
|
| 2 |
+
gradio==4.44.1
|
| 3 |
+
gradio_client==1.3.0
|
| 4 |
spaces
|
| 5 |
huggingface_hub>=0.23.0
|
| 6 |
|