JatsTheAIGen commited on
Commit
26401b4
·
1 Parent(s): fbf030e

Add runtime monkeypatch for gradio_client boolean-JSON-Schema bug; import before gradio

Browse files
Files changed (3) hide show
  1. app.py +2 -1
  2. app_gradio.py +3 -2
  3. patch_gradio_jsonschema.py +0 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  # app.py (Updated with Triage Orchestration)
2
 
3
  import os
@@ -95,4 +96,4 @@ def chat():
95
  return jsonify({"response": response})
96
 
97
  if __name__ == '__main__':
98
- app.run(debug=True, port=5001)
 
1
+ import patch_gradio_jsonschema # MUST be first - patches boolean JSON Schema handling\n
2
  # app.py (Updated with Triage Orchestration)
3
 
4
  import os
 
96
  return jsonify({"response": response})
97
 
98
  if __name__ == '__main__':
99
+ app.run(debug=True, port=5001)
app_gradio.py CHANGED
@@ -1,3 +1,4 @@
 
1
  # app_gradio.py (Final Version)
2
 
3
  import gradio as gr
@@ -214,8 +215,8 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Autonomous AI Lab") as demo:
214
  # --- Launch Configuration ---
215
  if __name__ == "__main__":
216
  demo.launch(
217
- share=True,
218
  server_name="0.0.0.0",
219
  auth=[(user, pwd) for user, pwd in USERS.items()],
220
  auth_message="Enter your credentials to access the Autonomous AI Lab."
221
- )
 
1
+ import patch_gradio_jsonschema # MUST be first - patches boolean JSON Schema handling\n
2
  # app_gradio.py (Final Version)
3
 
4
  import gradio as gr
 
215
  # --- Launch Configuration ---
216
  if __name__ == "__main__":
217
  demo.launch(
218
+ share=False,
219
  server_name="0.0.0.0",
220
  auth=[(user, pwd) for user, pwd in USERS.items()],
221
  auth_message="Enter your credentials to access the Autonomous AI Lab."
222
+ )
patch_gradio_jsonschema.py ADDED
File without changes