akash304 commited on
Commit
c2b148d
·
1 Parent(s): 615fe87

Added spinner

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -151,6 +151,7 @@ if __name__ == "__main__":
151
  # st.login()
152
  # else:
153
  if st.button("Generate Plan", type="primary") and origin_city and destination_city and date_of_departure and date_of_return and departure_flight and return_flight and food_preference and exercise_preference:
154
- trip_crew = TripCrew(origin_city, destination_city, date_of_departure, date_of_return, departure_flight, return_flight, food_preference, exercise_preference)
155
- result = trip_crew.run()
156
- st.markdown(result)
 
 
151
  # st.login()
152
  # else:
153
  if st.button("Generate Plan", type="primary") and origin_city and destination_city and date_of_departure and date_of_return and departure_flight and return_flight and food_preference and exercise_preference:
154
+ with st.spinner('Your plan is getting ready...'):
155
+ trip_crew = TripCrew(origin_city, destination_city, date_of_departure, date_of_return, departure_flight, return_flight, food_preference, exercise_preference)
156
+ result = trip_crew.run()
157
+ st.markdown(result)