m-ric HF staff commited on
Commit
7d7c12f
โ€ข
1 Parent(s): 447f799

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -21,6 +21,8 @@ from examples import (
21
  output_example_sf,
22
  description_loire,
23
  output_example_loire,
 
 
24
  trip_examples
25
  )
26
 
@@ -225,13 +227,13 @@ with gr.Blocks(
225
  gr.Markdown("# ๐Ÿ—บ๏ธ AI Travel Planner ๐Ÿ•๏ธ\nThis personal travel planner is based on Mixtral-8x7B, called through the Hugging Face API. Describe your ideal trip below, and let our AI assistant guide you!")
226
  text = gr.Textbox(
227
  label="Describe your ideal trip:",
228
- value=description_sf,
229
  )
230
  button = gr.Button("Generate trip!")
231
 
232
  gr.Markdown("### LLM Output ๐Ÿ‘‡")
233
 
234
- example_dataframe, example_rationale = parse_llm_output(output_example_sf)
235
  display_thoughts = gr.Markdown("```text\n" + output_example_sf + "\n```")
236
 
237
  gr.Markdown("_Click the markers on the map map to display information about the places._")
@@ -240,7 +242,7 @@ with gr.Blocks(
240
  map = Folium(value=starting_map, height=600, label="Chosen locations")
241
 
242
  # Trip examples
243
- clickable_examples = gr.Dropdown(choices=trip_examples.keys(), label="Try another example:", value=description_sf)
244
 
245
  # Dynamics
246
  button.click(run_display, inputs=[text], outputs=[map, display_thoughts])
 
21
  output_example_sf,
22
  description_loire,
23
  output_example_loire,
24
+ description_taiwan,
25
+ output_example_taiwan,
26
  trip_examples
27
  )
28
 
 
227
  gr.Markdown("# ๐Ÿ—บ๏ธ AI Travel Planner ๐Ÿ•๏ธ\nThis personal travel planner is based on Mixtral-8x7B, called through the Hugging Face API. Describe your ideal trip below, and let our AI assistant guide you!")
228
  text = gr.Textbox(
229
  label="Describe your ideal trip:",
230
+ value=description_taiwan,
231
  )
232
  button = gr.Button("Generate trip!")
233
 
234
  gr.Markdown("### LLM Output ๐Ÿ‘‡")
235
 
236
+ example_dataframe, _ = parse_llm_output(output_example_taiwan)
237
  display_thoughts = gr.Markdown("```text\n" + output_example_sf + "\n```")
238
 
239
  gr.Markdown("_Click the markers on the map map to display information about the places._")
 
242
  map = Folium(value=starting_map, height=600, label="Chosen locations")
243
 
244
  # Trip examples
245
+ clickable_examples = gr.Dropdown(choices=trip_examples.keys(), label="Try another example:", value=description_taiwan)
246
 
247
  # Dynamics
248
  button.click(run_display, inputs=[text], outputs=[map, display_thoughts])