Akshayram1 commited on
Commit
2310555
Β·
verified Β·
1 Parent(s): c556d1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -11
app.py CHANGED
@@ -32,15 +32,13 @@ st.markdown(r"""
32
  margin-bottom: 20px;
33
  background-color: white;
34
  }
35
- /* Background image from Unsplash */
36
  body {
37
- background-image: url("https://images.unsplash.com/photo-7NT4EDSI5Ok");
38
  background-size: cover;
39
  background-position: center;
40
  background-repeat: no-repeat;
41
  background-attachment: fixed;
42
  }
43
- /* Overlay to improve readability */
44
  .main > div {
45
  background-color: rgba(255, 255, 255, 0.9);
46
  padding: 20px;
@@ -111,7 +109,6 @@ def analyze_comments(comments):
111
  3. Format
112
  4. Engagement Strategy
113
  5. Success Metrics
114
-
115
  Comments:
116
  {comments}
117
  """
@@ -167,14 +164,13 @@ if st.session_state.content_plan:
167
  for day in range(10):
168
  current_date = start_date + timedelta(days=day)
169
  with st.expander(f"Day {day+1} - {current_date.strftime('%b %d')}", expanded=True if day==0 else False):
170
- st.markdown(
171
- f"""
172
  <div class="day-card">
173
- <h3>{st.session_state.content_plan.split('\n')[day*5]}</h3>
174
- <p>🎯 Objective: {st.session_state.content_plan.split('\n')[day*5+1]}</p>
175
- <p>πŸ“Ή Format: {st.session_state.content_plan.split('\n')[day*5+2]}</p>
176
- <p>πŸ’‘ Engagement Strategy: {st.session_state.content_plan.split('\n')[day*5+3]}</p>
177
- <p>πŸ“ˆ Success Metrics: {st.session_state.content_plan.split('\n')[day*5+4]}</p>
178
  </div>
179
  """,
180
  unsafe_allow_html=True
 
32
  margin-bottom: 20px;
33
  background-color: white;
34
  }
 
35
  body {
36
+ background-image: url('https://images.unsplash.com/photo-7NT4EDSI5Ok');
37
  background-size: cover;
38
  background-position: center;
39
  background-repeat: no-repeat;
40
  background-attachment: fixed;
41
  }
 
42
  .main > div {
43
  background-color: rgba(255, 255, 255, 0.9);
44
  padding: 20px;
 
109
  3. Format
110
  4. Engagement Strategy
111
  5. Success Metrics
 
112
  Comments:
113
  {comments}
114
  """
 
164
  for day in range(10):
165
  current_date = start_date + timedelta(days=day)
166
  with st.expander(f"Day {day+1} - {current_date.strftime('%b %d')}", expanded=True if day==0 else False):
167
+ st.markdown(f"""
 
168
  <div class="day-card">
169
+ <h3>{st.session_state.content_plan.split('\\n')[day*5]}</h3>
170
+ <p>🎯 Objective: {st.session_state.content_plan.split('\\n')[day*5+1]}</p>
171
+ <p>πŸ“Ή Format: {st.session_state.content_plan.split('\\n')[day*5+2]}</p>
172
+ <p>πŸ’‘ Engagement Strategy: {st.session_state.content_plan.split('\\n')[day*5+3]}</p>
173
+ <p>πŸ“ˆ Success Metrics: {st.session_state.content_plan.split('\\n')[day*5+4]}</p>
174
  </div>
175
  """,
176
  unsafe_allow_html=True