rajat5ranjan commited on
Commit
6bb8158
Β·
verified Β·
1 Parent(s): efd0ade

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -220,7 +220,8 @@ if activities == "Symbol Analysis":
220
  st.subheader("πŸ“ Summary")
221
  # st.write(analysis_summary.summary)
222
  summary= analysis_summary.summary
223
- st.markdown(f"### RECOMMENDATION : :red[{summary['RECOMMENDATION']}] \\n BUY: {summary['BUY']} \n SELL : {summary['SELL']}\n : NEUTRAL: {summary['NEUTRAL']}")
 
224
 
225
  # --- Row 2: Oscillators + Moving Averages ---
226
  # col3, col4 = st.columns(2)
@@ -457,7 +458,7 @@ elif activities=="News Sentiment":
457
  "Neutral": "🟑 Neutral"
458
  }.get(stock["sentiment"], stock["sentiment"])
459
  st.metric(label="Sentiment", value=sentiment_color)
460
- st.markdown(f"**🚦 Action:** `{stock['action']}`")
461
 
462
  st.divider()
463
 
 
220
  st.subheader("πŸ“ Summary")
221
  # st.write(analysis_summary.summary)
222
  summary= analysis_summary.summary
223
+ BUY_PER = (summary['BUY']/(summary['BUY'] + summary['SELL']+ summary['NEUTRAL']))*100
224
+ st.markdown(f"#### RECOMMENDATION : :red[{summary['RECOMMENDATION']}] | BUY: {BUY_PER}")
225
 
226
  # --- Row 2: Oscillators + Moving Averages ---
227
  # col3, col4 = st.columns(2)
 
458
  "Neutral": "🟑 Neutral"
459
  }.get(stock["sentiment"], stock["sentiment"])
460
  st.metric(label="Sentiment", value=sentiment_color)
461
+ st.markdown(f"**🚦 Action:** :red[{stock['action']}]")
462
 
463
  st.divider()
464