Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,9 +33,8 @@ def generate_podcast(prompt : str, history: list) -> str:
|
|
33 |
response = ""
|
34 |
|
35 |
try:
|
36 |
-
mcp_client = MCPClient(
|
37 |
-
{"url": "https://agents-mcp-hackathon-websearch.hf.space/gradio_api/mcp/sse", "transport": "sse"}
|
38 |
-
{"url": "https://agents-mcp-hackathon-footballmatchesbydate.hf.space/gradio_api/mcp/sse", "transport": "sse"}] # This is the MCP Server we created in the previous section
|
39 |
)
|
40 |
tools = mcp_client.get_tools()
|
41 |
|
@@ -61,5 +60,5 @@ demo = gr.ChatInterface(
|
|
61 |
|
62 |
if __name__ == "__main__":
|
63 |
demo.launch(
|
64 |
-
|
65 |
)
|
|
|
33 |
response = ""
|
34 |
|
35 |
try:
|
36 |
+
mcp_client = MCPClient(
|
37 |
+
{"url": "https://agents-mcp-hackathon-websearch.hf.space/gradio_api/mcp/sse", "transport": "sse"}# This is the MCP Server we created in the previous section
|
|
|
38 |
)
|
39 |
tools = mcp_client.get_tools()
|
40 |
|
|
|
60 |
|
61 |
if __name__ == "__main__":
|
62 |
demo.launch(
|
63 |
+
mcp_server=True
|
64 |
)
|