Spaces:
Runtime error
Runtime error
Claude commited on
fix: Disable API documentation to avoid Gradio schema bug
Browse filesThe TypeError in Gradio's get_api_info() was caused by its JSON schema
parser encountering additionalProperties: True (boolean) in the schema
for complex types like SessionState. Setting show_api=False prevents
Gradio from generating API documentation entirely, avoiding the bug.
app.py
CHANGED
|
@@ -770,7 +770,7 @@ def get_welcome_message():
|
|
| 770 |
|
| 771 |
def create_demo():
|
| 772 |
"""Create and configure the Gradio demo application."""
|
| 773 |
-
with gr.Blocks(title="Video Analyzer") as demo:
|
| 774 |
# Per-session state for ChromaDB collection
|
| 775 |
session_state = gr.State(value=None)
|
| 776 |
|
|
|
|
| 770 |
|
| 771 |
def create_demo():
|
| 772 |
"""Create and configure the Gradio demo application."""
|
| 773 |
+
with gr.Blocks(title="Video Analyzer", show_api=False) as demo:
|
| 774 |
# Per-session state for ChromaDB collection
|
| 775 |
session_state = gr.State(value=None)
|
| 776 |
|