nameee commited on
Commit
ff4a360
Β·
verified Β·
1 Parent(s): 918c9d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -8
app.py CHANGED
@@ -230,25 +230,30 @@ with gr.Blocks(
230
  secondary_hue=gr.themes.colors.blue,
231
  )
232
  ) as demo:
233
- 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!\n Beware that the model does not really have access to train or plane schedules, it is relying on general world knowledge for its propositions.")
234
  text = gr.Textbox(
235
- label="Describe your ideal trip:",
236
  value=description_taiwan,
237
  )
238
- button = gr.Button("Generate trip!")
239
 
240
- gr.Markdown("### LLM Output πŸ‘‡")
241
 
242
- example_dataframe, _ = parse_llm_output(output_example_taiwan)
243
- display_thoughts = gr.Markdown("```text\n" + output_example_sf + "\n```")
244
 
245
- gr.Markdown("_Click the markers on the map map to display information about the places._")
 
 
 
 
 
246
  # Get initial map
247
  starting_map = create_map_from_markers(example_dataframe)
248
  map = Folium(value=starting_map, height=600, label="Chosen locations")
249
 
250
  # Trip examples
251
- clickable_examples = gr.Dropdown(choices=trip_examples.keys(), label="Try another example:", value=description_taiwan)
252
 
253
  # Dynamics
254
  button.click(run_display, inputs=[text], outputs=[map, display_thoughts])
 
230
  secondary_hue=gr.themes.colors.blue,
231
  )
232
  ) as demo:
233
+ gr.Markdown("# πŸ—ΊοΈ AI μ—¬ν–‰ κ°€μ΄λ“œ πŸ•οΈ")
234
  text = gr.Textbox(
235
+ label="λ‹Ήμ‹ μ˜ μ—¬ν–‰ ν”Œλžœμ„ μ„€λͺ…ν•΄μ£Όμ„Έμš”:",
236
  value=description_taiwan,
237
  )
238
+ button = gr.Button("μ‹€ν–‰ν•˜κΈ°!")
239
 
240
+ gr.Markdown("### μ—¬ν–‰κ²½λ‘œ μ„€λͺ… πŸ‘‡")
241
 
242
+ # example_dataframe, _ = parse_llm_output(output_example_taiwan)
243
+ # display_thoughts = gr.Markdown("```text\n" + output_example_sf + "\n```")
244
 
245
+ example_dataframe, _ = parse_llm_output(output_example_taiwan)
246
+ # 'output_example_sf'의 λ‚΄μš©μ„ ν•œκΈ€λ‘œ λ²ˆμ—­ν•œ κ°€μ •ν•˜μ— 'output_example_kr'둜 ν‘œν˜„
247
+ output_example_kr = "여기에 ν•œκΈ€λ‘œ λ²ˆμ—­λœ λ‚΄μš©μ„ λ„£μŠ΅λ‹ˆλ‹€."
248
+ display_thoughts = gr.Markdown("```text\n" + output_example_kr + "\n```")
249
+
250
+ gr.Markdown("_μ§€λ„μ—μ„œ 마컀λ₯Ό ν΄λ¦­ν•˜μ—¬ μž₯μ†Œμ— λŒ€ν•œ 정보λ₯Ό ν™•μΈν•΄λ³΄μ„Έμš”_")
251
  # Get initial map
252
  starting_map = create_map_from_markers(example_dataframe)
253
  map = Folium(value=starting_map, height=600, label="Chosen locations")
254
 
255
  # Trip examples
256
+ # clickable_examples = gr.Dropdown(choices=trip_examples.keys(), label="λ‹€λ₯Έ μ˜ˆμ‹œ 보기:", value=description_taiwan)
257
 
258
  # Dynamics
259
  button.click(run_display, inputs=[text], outputs=[map, display_thoughts])