Spaces:
Running
Running
Merge pull request #28 from The-Obstacle-Is-The-Way/fix/gradio-upgrade-cleanup
Browse files- README.md +1 -1
- pyproject.toml +1 -1
- requirements.txt +2 -2
- src/app.py +2 -2
- uv.lock +1 -9
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🧬
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 5.
|
| 8 |
python_version: "3.11"
|
| 9 |
app_file: src/app.py
|
| 10 |
pinned: false
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: "5.33.0"
|
| 8 |
python_version: "3.11"
|
| 9 |
app_file: src/app.py
|
| 10 |
pinned: false
|
pyproject.toml
CHANGED
|
@@ -17,7 +17,7 @@ dependencies = [
|
|
| 17 |
"beautifulsoup4>=4.12", # HTML parsing
|
| 18 |
"xmltodict>=0.13", # PubMed XML -> dict
|
| 19 |
# UI
|
| 20 |
-
"gradio[mcp]>=5.
|
| 21 |
# Utils
|
| 22 |
"python-dotenv>=1.0", # .env loading
|
| 23 |
"tenacity>=8.2", # Retry logic
|
|
|
|
| 17 |
"beautifulsoup4>=4.12", # HTML parsing
|
| 18 |
"xmltodict>=0.13", # PubMed XML -> dict
|
| 19 |
# UI
|
| 20 |
+
"gradio[mcp]>=5.32.0", # Chat interface with MCP server support
|
| 21 |
# Utils
|
| 22 |
"python-dotenv>=1.0", # .env loading
|
| 23 |
"tenacity>=8.2", # Retry logic
|
requirements.txt
CHANGED
|
@@ -12,8 +12,8 @@ httpx>=0.27
|
|
| 12 |
beautifulsoup4>=4.12
|
| 13 |
xmltodict>=0.13
|
| 14 |
|
| 15 |
-
# UI (Gradio with MCP support)
|
| 16 |
-
gradio[mcp]>=5.
|
| 17 |
|
| 18 |
# Utils
|
| 19 |
python-dotenv>=1.0
|
|
|
|
| 12 |
beautifulsoup4>=4.12
|
| 13 |
xmltodict>=0.13
|
| 14 |
|
| 15 |
+
# UI (Gradio with MCP server support)
|
| 16 |
+
gradio[mcp]>=5.32.0
|
| 17 |
|
| 18 |
# Utils
|
| 19 |
python-dotenv>=1.0
|
src/app.py
CHANGED
|
@@ -143,7 +143,7 @@ def create_demo() -> Any:
|
|
| 143 |
- "What existing medications show promise for Long COVID?"
|
| 144 |
""")
|
| 145 |
|
| 146 |
-
# Main chat interface
|
| 147 |
gr.ChatInterface(
|
| 148 |
fn=research_agent,
|
| 149 |
title="",
|
|
@@ -246,7 +246,7 @@ def main() -> None:
|
|
| 246 |
server_name="0.0.0.0",
|
| 247 |
server_port=7860,
|
| 248 |
share=False,
|
| 249 |
-
mcp_server=True,
|
| 250 |
)
|
| 251 |
|
| 252 |
|
|
|
|
| 143 |
- "What existing medications show promise for Long COVID?"
|
| 144 |
""")
|
| 145 |
|
| 146 |
+
# Main chat interface
|
| 147 |
gr.ChatInterface(
|
| 148 |
fn=research_agent,
|
| 149 |
title="",
|
|
|
|
| 246 |
server_name="0.0.0.0",
|
| 247 |
server_port=7860,
|
| 248 |
share=False,
|
| 249 |
+
mcp_server=True,
|
| 250 |
)
|
| 251 |
|
| 252 |
|
uv.lock
CHANGED
|
@@ -1105,11 +1105,6 @@ modal = [
|
|
| 1105 |
{ name = "modal" },
|
| 1106 |
]
|
| 1107 |
|
| 1108 |
-
[package.dev-dependencies]
|
| 1109 |
-
dev = [
|
| 1110 |
-
{ name = "typer" },
|
| 1111 |
-
]
|
| 1112 |
-
|
| 1113 |
[package.metadata]
|
| 1114 |
requires-dist = [
|
| 1115 |
{ name = "agent-framework-core", marker = "extra == 'magentic'" },
|
|
@@ -1117,7 +1112,7 @@ requires-dist = [
|
|
| 1117 |
{ name = "beautifulsoup4", specifier = ">=4.12" },
|
| 1118 |
{ name = "chromadb", marker = "extra == 'embeddings'", specifier = ">=0.4.0" },
|
| 1119 |
{ name = "chromadb", marker = "extra == 'modal'", specifier = ">=0.4.0" },
|
| 1120 |
-
{ name = "gradio", extras = ["mcp"], specifier = ">=5.
|
| 1121 |
{ name = "httpx", specifier = ">=0.27" },
|
| 1122 |
{ name = "llama-index", marker = "extra == 'modal'", specifier = ">=0.11.0" },
|
| 1123 |
{ name = "llama-index-embeddings-openai", marker = "extra == 'modal'" },
|
|
@@ -1147,9 +1142,6 @@ requires-dist = [
|
|
| 1147 |
]
|
| 1148 |
provides-extras = ["dev", "magentic", "embeddings", "modal"]
|
| 1149 |
|
| 1150 |
-
[package.metadata.requires-dev]
|
| 1151 |
-
dev = [{ name = "typer", specifier = ">=0.20.0" }]
|
| 1152 |
-
|
| 1153 |
[[package]]
|
| 1154 |
name = "defusedxml"
|
| 1155 |
version = "0.7.1"
|
|
|
|
| 1105 |
{ name = "modal" },
|
| 1106 |
]
|
| 1107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1108 |
[package.metadata]
|
| 1109 |
requires-dist = [
|
| 1110 |
{ name = "agent-framework-core", marker = "extra == 'magentic'" },
|
|
|
|
| 1112 |
{ name = "beautifulsoup4", specifier = ">=4.12" },
|
| 1113 |
{ name = "chromadb", marker = "extra == 'embeddings'", specifier = ">=0.4.0" },
|
| 1114 |
{ name = "chromadb", marker = "extra == 'modal'", specifier = ">=0.4.0" },
|
| 1115 |
+
{ name = "gradio", extras = ["mcp"], specifier = ">=5.32.0" },
|
| 1116 |
{ name = "httpx", specifier = ">=0.27" },
|
| 1117 |
{ name = "llama-index", marker = "extra == 'modal'", specifier = ">=0.11.0" },
|
| 1118 |
{ name = "llama-index-embeddings-openai", marker = "extra == 'modal'" },
|
|
|
|
| 1142 |
]
|
| 1143 |
provides-extras = ["dev", "magentic", "embeddings", "modal"]
|
| 1144 |
|
|
|
|
|
|
|
|
|
|
| 1145 |
[[package]]
|
| 1146 |
name = "defusedxml"
|
| 1147 |
version = "0.7.1"
|