ritwikbiswas commited on
Commit
ff09048
β€’
1 Parent(s): 6d83727

cols to itinerary

Browse files
Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -30,7 +30,7 @@ with st.sidebar:
30
  #generate chart and plan
31
  if generate_button:
32
  if len(activities) <= 2 and len(locations.split(','))<=3:
33
- st.success('Scroll down to see your full itinerary!', icon="🧭")
34
 
35
  #openai request
36
  activity_list =','.join(activities)
@@ -49,9 +49,18 @@ if generate_button:
49
  # TEXT TRIP
50
  st.subheader("Day by Day Itinerary")
51
  trip_view = st.container()
52
- for i in range(days):
53
- trip_view.write(f'**Day {i+1}** \n- Start the day in London by visiting the British Museum and other historic sites \n- Afterward, explore the city by taking a walking tour of the city \n- Finish the day by enjoying a pint at a local pub')
54
- st.text(" \n")
 
 
 
 
 
 
 
 
 
55
  else:
56
  st.error('Make sure you only enter no more than 2 activities and 3 locations!', icon="🌍")
57
  else:
 
30
  #generate chart and plan
31
  if generate_button:
32
  if len(activities) <= 2 and len(locations.split(','))<=3:
33
+ #st.success('Scroll down to see your full itinerary!', icon="🧭")
34
 
35
  #openai request
36
  activity_list =','.join(activities)
 
49
  # TEXT TRIP
50
  st.subheader("Day by Day Itinerary")
51
  trip_view = st.container()
52
+ col1, col2 = st.columns(2)
53
+ with col1:
54
+ for i in [1,3,5]:
55
+ st.subheader(f'Day {i}')
56
+ st.markdown(f' \n- Start the day in London by visiting the British Museum and other historic sites \n- Afterward, explore the city by taking a walking tour of the city \n- Finish the day by enjoying a pint at a local pub')
57
+ with col2:
58
+ for i in [2,4]:
59
+ st.subheader(f'Day {i}')
60
+ st.markdown(f' \n- Start the day in London by visiting the British Museum and other historic sites \n- Afterward, explore the city by taking a walking tour of the city \n- Finish the day by enjoying a pint at a local pub')
61
+ # for i in range(days):
62
+ # st.markdown(f' \n- Start the day in London by visiting the British Museum and other historic sites \n- Afterward, explore the city by taking a walking tour of the city \n- Finish the day by enjoying a pint at a local pub')
63
+ # st.text(" \n")
64
  else:
65
  st.error('Make sure you only enter no more than 2 activities and 3 locations!', icon="🌍")
66
  else: