Nazhar commited on
Commit
7f81da1
·
verified ·
1 Parent(s): 5ec0114

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -658,7 +658,7 @@ with final_recs:
658
  role = st.radio(
659
  "Show recommendation summary as:",
660
  ["Active Trader", "Equity Analyst"], horizontal=True)
661
- st.divider()
662
  filter_recs = recs[recs['Date'] == pred_date]
663
  if role == 'Active Trader':
664
  trade_recs = filter_recs[['Date', 'Recommendations_Active_Trader', 'Price']]
@@ -688,11 +688,12 @@ with final_recs:
688
  genrec_container = st.container(border=False)
689
  rec_col1, rec_col2, rec_col3 = genrec_container.columns(3, gap='medium')
690
  current_price = trade_recs['Price'][0]
691
- st.subheader("Generated Recommendations")
692
  rec_col1.write(f'<span style="font-size: large;"><b>Current Date:</b> <u>{pred_date}</u></span>', unsafe_allow_html=True)
693
  rec_col2.write(f'<span style="font-size: large;"><b>Current Close Price:</b> {current_price}</span>', unsafe_allow_html=True)
694
  rec_col3.write(f'<span style="font-size: large;"><b>Following Close Price:</b> {fp[pred_date]}</span>', unsafe_allow_html=True)
695
-
 
696
  # genrec = 'Recommendation for following day will go here.'
697
  genrec_container.write(trade_recs['Recommendations'][0])
698
 
 
658
  role = st.radio(
659
  "Show recommendation summary as:",
660
  ["Active Trader", "Equity Analyst"], horizontal=True)
661
+
662
  filter_recs = recs[recs['Date'] == pred_date]
663
  if role == 'Active Trader':
664
  trade_recs = filter_recs[['Date', 'Recommendations_Active_Trader', 'Price']]
 
688
  genrec_container = st.container(border=False)
689
  rec_col1, rec_col2, rec_col3 = genrec_container.columns(3, gap='medium')
690
  current_price = trade_recs['Price'][0]
691
+
692
  rec_col1.write(f'<span style="font-size: large;"><b>Current Date:</b> <u>{pred_date}</u></span>', unsafe_allow_html=True)
693
  rec_col2.write(f'<span style="font-size: large;"><b>Current Close Price:</b> {current_price}</span>', unsafe_allow_html=True)
694
  rec_col3.write(f'<span style="font-size: large;"><b>Following Close Price:</b> {fp[pred_date]}</span>', unsafe_allow_html=True)
695
+ genrec_container.subheader("Generated Recommendation")
696
+ genrec_container.divider()
697
  # genrec = 'Recommendation for following day will go here.'
698
  genrec_container.write(trade_recs['Recommendations'][0])
699