buitu0 commited on
Commit
af47f06
·
verified ·
1 Parent(s): 96fd1d2

Upload streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +2 -4
streamlit_app.py CHANGED
@@ -142,11 +142,9 @@ if st.button("🎧 Bắt Đầu Tạo Tour", type="primary"):
142
  st.error("Vui lòng chọn ít nhất một chủ đề.")
143
  else:
144
  with st.spinner(f"Đang lên kịch bản cho {location}... Quá trình này dùng Gemini và mất khoảng 15-20 giây."):
145
- mgr = TourManager()
146
  try:
147
- final_tour = run_async(
148
- mgr.run, location, interests, duration
149
- )
150
 
151
  # Display the tour content in an expandable section
152
  with st.expander("📝 Kịch Bản Tour", expanded=True):
 
142
  st.error("Vui lòng chọn ít nhất một chủ đề.")
143
  else:
144
  with st.spinner(f"Đang lên kịch bản cho {location}... Quá trình này dùng Gemini và mất khoảng 15-20 giây."):
145
+ mgr = TourManager(location=location, interests=interests, duration=duration)
146
  try:
147
+ final_tour = mgr.generate_tour()
 
 
148
 
149
  # Display the tour content in an expandable section
150
  with st.expander("📝 Kịch Bản Tour", expanded=True):