Abs6187 commited on
Commit
5423c93
·
verified ·
1 Parent(s): c543ff7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -353,12 +353,14 @@ def main():
353
 
354
  st.success(f"Your personalized plan is ready!")
355
 
 
 
356
  st.markdown(f"""
357
  <div class="result-container">
358
  <h2 style="text-align: center; color: #2E7D32;">{plan_type} for {name}</h2>
359
  <h4 style="text-align: center; color: #666;">Month: {month}</h4>
360
  <hr>
361
- {formatted_plan.replace('\n', '<br>')}
362
  </div>
363
  """, unsafe_allow_html=True)
364
 
@@ -404,5 +406,4 @@ def main():
404
  """, unsafe_allow_html=True)
405
 
406
  if __name__ == "__main__":
407
- main()
408
-
 
353
 
354
  st.success(f"Your personalized plan is ready!")
355
 
356
+ formatted_plan_html = formatted_plan.replace('\n', '<br>')
357
+
358
  st.markdown(f"""
359
  <div class="result-container">
360
  <h2 style="text-align: center; color: #2E7D32;">{plan_type} for {name}</h2>
361
  <h4 style="text-align: center; color: #666;">Month: {month}</h4>
362
  <hr>
363
+ {formatted_plan_html}
364
  </div>
365
  """, unsafe_allow_html=True)
366
 
 
406
  """, unsafe_allow_html=True)
407
 
408
  if __name__ == "__main__":
409
+ main()