Claude commited on
Commit
babcda2
·
unverified ·
1 Parent(s): 3f663be

fix: Disable API documentation to avoid Gradio schema bug

Browse files

The 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.

Files changed (1) hide show
  1. app.py +1 -1
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