AdithyaSNair commited on
Commit
b61b85c
·
verified ·
1 Parent(s): 88d2c6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -21,6 +21,7 @@ st.set_page_config(
21
  initial_sidebar_state="expanded"
22
  )
23
 
 
24
  with st.sidebar:
25
  st.image("image.png", width=250)
26
  st.markdown("""
@@ -33,7 +34,7 @@ with st.sidebar:
33
  if api_key:
34
  update_llm(api_key)
35
  st.success("API Key updated!")
36
-
37
  st.markdown("""
38
  <div class="sidebar-section">
39
  <h2>About</h2>
@@ -227,12 +228,11 @@ if 'current_output' not in st.session_state:
227
  if 'form_submitted' not in st.session_state:
228
  st.session_state.form_submitted = False
229
 
230
- col1, col2, col3 = st.columns([1,2,1])
231
- with col2:
232
- st.image("image.png", width=350)
233
-
234
  st.markdown(f"""
235
  <div class="animate-in" style="text-align: center;">
 
 
236
  <h1 class="main-header">Your AI Agent for Travelling</h1>
237
  <p style="font-size: 1.2rem; color: var(--text-muted); margin-bottom: 25px;">
238
  ✨ Create your personalized AI-powered travel itinerary in minutes! ✨
@@ -242,6 +242,7 @@ st.markdown(f"""
242
 
243
  st.markdown('<hr style="height:3px;border:none;background-color:#f0f0f0;margin-bottom:25px;">', unsafe_allow_html=True)
244
 
 
245
  if not st.session_state.generation_complete:
246
  st.markdown('<div class="modern-card animate-in">', unsafe_allow_html=True)
247
  st.markdown("<h3 style='font-weight: 600; color: var(--primary-dark); text-align: center;'>✈️ Create Your Itinerary</h3>", unsafe_allow_html=True)
@@ -459,7 +460,6 @@ Dining Recommendations:
459
  date_str = datetime.now().strftime("%Y-%m-%d")
460
  st.session_state.filename = f"{user_input['destination'].replace(' ', '_')}_{date_str}_itinerary.txt"
461
 
462
-
463
  if st.session_state.generation_complete:
464
  st.markdown("""
465
  <div class="modern-card animate-in">
 
21
  initial_sidebar_state="expanded"
22
  )
23
 
24
+ # Sidebar: API key input and project info
25
  with st.sidebar:
26
  st.image("image.png", width=250)
27
  st.markdown("""
 
34
  if api_key:
35
  update_llm(api_key)
36
  st.success("API Key updated!")
37
+
38
  st.markdown("""
39
  <div class="sidebar-section">
40
  <h2>About</h2>
 
228
  if 'form_submitted' not in st.session_state:
229
  st.session_state.form_submitted = False
230
 
231
+ # Main Header
 
 
 
232
  st.markdown(f"""
233
  <div class="animate-in" style="text-align: center;">
234
+ <div style="margin-bottom: 20px;">
235
+ </div>
236
  <h1 class="main-header">Your AI Agent for Travelling</h1>
237
  <p style="font-size: 1.2rem; color: var(--text-muted); margin-bottom: 25px;">
238
  ✨ Create your personalized AI-powered travel itinerary in minutes! ✨
 
242
 
243
  st.markdown('<hr style="height:3px;border:none;background-color:#f0f0f0;margin-bottom:25px;">', unsafe_allow_html=True)
244
 
245
+ # Main Form
246
  if not st.session_state.generation_complete:
247
  st.markdown('<div class="modern-card animate-in">', unsafe_allow_html=True)
248
  st.markdown("<h3 style='font-weight: 600; color: var(--primary-dark); text-align: center;'>✈️ Create Your Itinerary</h3>", unsafe_allow_html=True)
 
460
  date_str = datetime.now().strftime("%Y-%m-%d")
461
  st.session_state.filename = f"{user_input['destination'].replace(' ', '_')}_{date_str}_itinerary.txt"
462
 
 
463
  if st.session_state.generation_complete:
464
  st.markdown("""
465
  <div class="modern-card animate-in">