Akshayram1 commited on
Commit
c92bdd2
ยท
verified ยท
1 Parent(s): 6c08b31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -170,18 +170,17 @@ if st.session_state.content_plan:
170
  # Calculate start index, accounting for potential inconsistent line counts
171
  start_index = day * 5
172
  if start_index + 4 < len(plan_lines):
173
- st.markdown(
174
- f"""
175
- <div class="day-card">
176
- <h3>{plan_lines[start_index] if start_index < len(plan_lines) else 'No Topic'}</h3>
177
- <p>๐ŸŽฏ Objective: {plan_lines[start_index+1] if start_index+1 < len(plan_lines) else 'N/A'}</p>
178
- <p>๐Ÿ“น Format: {plan_lines[start_index+2] if start_index+2 < len(plan_lines) else 'N/A'}</p>
179
- <p>๐Ÿ’ก Engagement Strategy: {plan_lines[start_index+3] if start_index+3 < len(plan_lines) else 'N/A'}</p>
180
- <p>๐Ÿ“ˆ Success Metrics: {plan_lines[start_index+4] if start_index+4 < len(plan_lines) else 'N/A'}</p>
181
- </div>
182
- """,
183
- unsafe_allow_html=True
184
- )
185
 
186
  # Download button
187
  st.download_button(
 
170
  # Calculate start index, accounting for potential inconsistent line counts
171
  start_index = day * 5
172
  if start_index + 4 < len(plan_lines):
173
+ st.markdown(f"""
174
+
175
+ <div class="day-card">
176
+ <h3>{plan_lines[start_index] if start_index < len(plan_lines) else 'No Topic'}</h3>
177
+ <p>๐ŸŽฏ Objective: {plan_lines[start_index+1] if start_index+1 < len(plan_lines) else 'N/A'}</p>
178
+ <p>๐Ÿ“น Format: {plan_lines[start_index+2] if start_index+2 < len(plan_lines) else 'N/A'}</p>
179
+ <p>๐Ÿ’ก Engagement Strategy: {plan_lines[start_index+3] if start_index+3 < len(plan_lines) else 'N/A'}</p>
180
+ <p>๐Ÿ“ˆ Success Metrics: {plan_lines[start_index+4] if start_index+4 < len(plan_lines) else 'N/A'}</p>
181
+ </div>
182
+ """, unsafe_allow_html=True)
183
+
 
184
 
185
  # Download button
186
  st.download_button(