betki commited on
Commit
170f0c5
·
verified ·
1 Parent(s): e49a1ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -13
app.py CHANGED
@@ -25,22 +25,18 @@ try:
25
  agent = CodeAgent(tools=[*tools], model=model)
26
 
27
  mcp_description = """
28
- # A Gradio MCP client that connects to my Hackathon MCP server
29
-
30
- ### Tool 1 - search_knowledge_base_for_context
31
- - **Example Queries**:
32
- - "What are the main features of fuel system of SU-35?"
33
- - "What is the combat potential of SU-35?"
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 Client For Hackathon",
 
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