Beemer0 commited on
Commit
e29fc76
·
verified ·
1 Parent(s): c0ff3c7

Fix Gradio 6 launch() crash: drop show_api, pin versions

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +5 -3
app.py CHANGED
@@ -296,5 +296,5 @@ if __name__ == "__main__":
296
  server_port=int(os.environ.get("PORT", "7860")),
297
  auth=AUTH,
298
  auth_message="Sign in to use CanLex.",
299
- show_api=False,
300
  )
 
296
  server_port=int(os.environ.get("PORT", "7860")),
297
  auth=AUTH,
298
  auth_message="Sign in to use CanLex.",
299
+ ssr_mode=False, # no Node in the slim container; render client-side
300
  )
requirements.txt CHANGED
@@ -1,5 +1,7 @@
1
- # CanLex Web (Path B) -- thin-client dependencies.
2
- gradio>=5.0 # web UI with built-in username/password auth
3
- mcp>=1.9 # streamable-HTTP client for the CanLex MCP server
 
 
4
  # Google Gemini is called through its REST API using only the Python standard
5
  # library (urllib); no LLM SDK dependency is needed.
 
1
+ # CanLex Web (Path B) -- thin-client dependencies. Versions are pinned so the
2
+ # Hugging Face Docker build is reproducible (an unpinned gradio floated to a new
3
+ # major and broke a launch() argument).
4
+ gradio==6.14.0 # web UI with built-in username/password auth
5
+ mcp==1.27.1 # streamable-HTTP client for the CanLex MCP server
6
  # Google Gemini is called through its REST API using only the Python standard
7
  # library (urllib); no LLM SDK dependency is needed.