rajsinghparihar commited on
Commit
6a1b259
·
1 Parent(s): 6922b6c

add tag: agent-demo-track

Browse files
Files changed (2) hide show
  1. README.md +3 -0
  2. app.py +11 -10
README.md CHANGED
@@ -8,6 +8,9 @@ sdk_version: 5.33.1
8
  app_file: app.py
9
  pinned: false
10
  short_description: A Gradio app that uses Agentic AI to plan your travel.
 
 
 
11
  ---
12
 
13
  An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
 
8
  app_file: app.py
9
  pinned: false
10
  short_description: A Gradio app that uses Agentic AI to plan your travel.
11
+ tags:
12
+ - agent-demo-track
13
+ - mcp-server-track
14
  ---
15
 
16
  An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
app.py CHANGED
@@ -1,18 +1,19 @@
1
  import gradio as gr
2
  from agent import get_itinerary
3
 
4
- # async def respond(message, history):
5
- # partial_message = ""
6
- # async for token in get_itinerary(message, history):
7
- # partial_message += str(token)
8
- # # Use yield to stream each update
9
- # yield partial_message
10
 
11
- demo = gr.ChatInterface(
12
- get_itinerary,
13
- type="messages"
14
- )
 
 
 
15
 
16
 
17
  if __name__ == "__main__":
 
18
  demo.launch()
 
1
  import gradio as gr
2
  from agent import get_itinerary
3
 
4
+ with gr.Blocks() as demo:
5
+ gr.Markdown("""
6
+ # Travel Itinerary Planner Agent
 
 
 
7
 
8
+ Welcome to the Travel Itinerary Planner Agent! This application helps you plan your travel itineraries effortlessly.
9
+ Simply provide your preferences and details, and the agent will generate a personalized travel plan for you.
10
+ """)
11
+ gr.ChatInterface(
12
+ get_itinerary,
13
+ type="messages"
14
+ )
15
 
16
 
17
  if __name__ == "__main__":
18
+ demo.queue(max_size=3)
19
  demo.launch()