Spaces:
Running
Running
owenkaplinsky
commited on
Commit
·
c0ce0c2
1
Parent(s):
b36a945
Finish converting MCP deployment to Gradio 6
Browse files- project/chat.py +3 -2
- requirements.txt +1 -1
project/chat.py
CHANGED
|
@@ -489,10 +489,11 @@ def deploy_to_huggingface(space_name):
|
|
| 489 |
)
|
| 490 |
|
| 491 |
# Create requirements.txt
|
| 492 |
-
requirements_content = """gradio
|
| 493 |
openai
|
| 494 |
requests
|
| 495 |
huggingface_hub
|
|
|
|
| 496 |
"""
|
| 497 |
|
| 498 |
api.upload_file(
|
|
@@ -1002,7 +1003,7 @@ def create_gradio_interface():
|
|
| 1002 |
|
| 1003 |
parts = url.split("/spaces/")
|
| 1004 |
user, space = parts[1].split("/")
|
| 1005 |
-
return f"https://{user}-{space}.hf.space/gradio_api/mcp"
|
| 1006 |
|
| 1007 |
live_mcp_url = convert_repo_to_live_mcp(current_mcp_server_url)
|
| 1008 |
|
|
|
|
| 489 |
)
|
| 490 |
|
| 491 |
# Create requirements.txt
|
| 492 |
+
requirements_content = """gradio[mcp,oauth]==6.0.0
|
| 493 |
openai
|
| 494 |
requests
|
| 495 |
huggingface_hub
|
| 496 |
+
sympy
|
| 497 |
"""
|
| 498 |
|
| 499 |
api.upload_file(
|
|
|
|
| 1003 |
|
| 1004 |
parts = url.split("/spaces/")
|
| 1005 |
user, space = parts[1].split("/")
|
| 1006 |
+
return f"https://{user}-{space}.hf.space/gradio_api/mcp/"
|
| 1007 |
|
| 1008 |
live_mcp_url = convert_repo_to_live_mcp(current_mcp_server_url)
|
| 1009 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio
|
| 2 |
dotenv
|
| 3 |
openai
|
| 4 |
requests
|
|
|
|
| 1 |
+
gradio[mcp,oauth]==6.0.0
|
| 2 |
dotenv
|
| 3 |
openai
|
| 4 |
requests
|