mashrur950 commited on
Commit
a9b6d71
·
1 Parent(s): cb20c71

Disable Gradio API docs to fix schema parsing crash

Browse files

The /api/ endpoint was trying to serialize ConversationManager
state and crashing on additionalProperties. Disabling show_api
skips this problematic endpoint.

Files changed (2) hide show
  1. app.py +2 -1
  2. ui/app.py +2 -1
app.py CHANGED
@@ -23,5 +23,6 @@ if __name__ == "__main__":
23
  server_name="0.0.0.0",
24
  server_port=7860,
25
  share=False,
26
- show_error=True
 
27
  )
 
23
  server_name="0.0.0.0",
24
  server_port=7860,
25
  share=False,
26
+ show_error=True,
27
+ show_api=False # Disable API docs to avoid schema parsing bug
28
  )
ui/app.py CHANGED
@@ -538,5 +538,6 @@ if __name__ == "__main__":
538
  server_name="0.0.0.0", # Allow external connections for HF Spaces
539
  server_port=7860,
540
  share=False,
541
- show_error=True
 
542
  )
 
538
  server_name="0.0.0.0", # Allow external connections for HF Spaces
539
  server_port=7860,
540
  share=False,
541
+ show_error=True,
542
+ show_api=False # Disable API docs to avoid schema parsing bug
543
  )