Spaces:
Running
Running
✨ refactor: update UI title and enhance user input options
Browse files- Gradio_UI.py +17 -12
Gradio_UI.py
CHANGED
@@ -261,10 +261,10 @@ class GradioUI:
|
|
261 |
def launch(self, **kwargs):
|
262 |
import gradio as gr
|
263 |
|
264 |
-
with gr.Blocks(title="Travel Planning
|
265 |
gr.Markdown(
|
266 |
"""
|
267 |
-
# Travel Planning
|
268 |
I can help you plan your trips, find the best time to travel, and provide information about destinations. Ask me about travel costs, best seasons to visit, or specific routes!
|
269 |
"""
|
270 |
)
|
@@ -280,16 +280,21 @@ class GradioUI:
|
|
280 |
resizeable=True,
|
281 |
scale=1,
|
282 |
)
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
|
|
|
|
|
|
|
|
|
|
293 |
text_input.submit(
|
294 |
self.log_user_message,
|
295 |
[text_input, file_uploads_log],
|
|
|
261 |
def launch(self, **kwargs):
|
262 |
import gradio as gr
|
263 |
|
264 |
+
with gr.Blocks(title="Travel Planning Agent", fill_height=True) as demo:
|
265 |
gr.Markdown(
|
266 |
"""
|
267 |
+
# Travel Planning Agent
|
268 |
I can help you plan your trips, find the best time to travel, and provide information about destinations. Ask me about travel costs, best seasons to visit, or specific routes!
|
269 |
"""
|
270 |
)
|
|
|
280 |
resizeable=True,
|
281 |
scale=1,
|
282 |
)
|
283 |
+
text_input = gr.Textbox(
|
284 |
+
label="Ask me anything about travel",
|
285 |
+
placeholder="Type your travel question here...",
|
286 |
+
)
|
287 |
+
gr.Examples(
|
288 |
+
examples=[
|
289 |
+
"What is the cheapest month to travel to Tokyo, Japan?",
|
290 |
+
"Find the best flight options from Denver, Colorado to Tokyo, Japan.",
|
291 |
+
"What is the typical weather in Tokyo during April?",
|
292 |
+
"What are the top must-visit attractions in Tokyo for first-time travelers?",
|
293 |
+
"How can I get from Narita Airport to Shinjuku using public transportation?"
|
294 |
+
],
|
295 |
+
inputs=text_input,
|
296 |
+
label="Example Questions"
|
297 |
+
)
|
298 |
text_input.submit(
|
299 |
self.log_user_message,
|
300 |
[text_input, file_uploads_log],
|