Spaces:
Sleeping
Sleeping
Upload streamlit_app.py
Browse files- 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 =
|
| 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):
|