Spaces:
Sleeping
Sleeping
Fix Gradio 6 launch() crash: drop show_api, pin versions
Browse files- app.py +1 -1
- 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 |
-
|
| 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 |
-
|
| 3 |
-
|
|
|
|
|
|
|
| 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.
|