Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,22 +25,18 @@ try:
|
|
25 |
agent = CodeAgent(tools=[*tools], model=model)
|
26 |
|
27 |
mcp_description = """
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
### Tool 2 - research_write_review_topic
|
36 |
-
- **Example Queries**:
|
37 |
-
- "Write me a report on origin of the universe."
|
38 |
-
- "Write me a report on the impact of climate change on polar bears."
|
39 |
-
"""
|
40 |
demo = gr.ChatInterface(
|
41 |
fn=lambda message, history: str(agent.run(message)),
|
|
|
42 |
type="messages",
|
43 |
-
title="MCP
|
|
|
44 |
description=mcp_description,
|
45 |
)
|
46 |
|
|
|
25 |
agent = CodeAgent(tools=[*tools], model=model)
|
26 |
|
27 |
mcp_description = """
|
28 |
+
**Example Queries**:
|
29 |
+
- "What are the main features of fuel system of SU-35?"
|
30 |
+
- "What is the combat potential of SU-35?"
|
31 |
+
- "Write me a report on origin of the universe."
|
32 |
+
- "Write me a report on the impact of climate change on polar bears."
|
33 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
demo = gr.ChatInterface(
|
35 |
fn=lambda message, history: str(agent.run(message)),
|
36 |
+
chatbot=gr.Chatbot(height=450, placeholder="Ask me about Sukhoi SU-35 or ask to write report on any topic."),
|
37 |
type="messages",
|
38 |
+
title="A Gradio MCP client that uses Tools from my Hackathon MCP server",
|
39 |
+
examples=[ "What are the main features of fuel system of SU-35?", "What is the combat potential of SU-35?", "Write me a report on origin of the universe."],
|
40 |
description=mcp_description,
|
41 |
)
|
42 |
|