Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
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="
|
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])
|