Nazhar commited on
Commit
66ffc2a
·
verified ·
1 Parent(s): 37ba286

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -203,7 +203,7 @@ with market_analysis:
203
  # xaxis=dict(title='Date'),
204
  # yaxis=dict(title='Close Price', side='left', showgrid=False),
205
  # yaxis2=dict(title='MACD', side='right', overlaying='y', showgrid=False))
206
- fig.update_layout(title='MACD Analysis')
207
  fig.update_xaxes(
208
  rangeslider_visible=False,
209
  rangeselector=dict(
@@ -581,7 +581,10 @@ with news_analysis:
581
 
582
  with final_recs:
583
  st.header("GenAI Recommendations")
584
- st.write("This module provides trading recommendation for the following day based on the selected current date.")
 
 
 
585
 
586
  if 'Trading_Recommendations\r' in events.columns:
587
  events.rename(columns={'Trading_Recommendations\r': 'Trading_Recommendations'}, inplace=True)
@@ -597,10 +600,10 @@ with final_recs:
597
  # Reverse the array to have the latest date at index 0
598
  dates = dates[::-1]
599
  num_dates = len(dates)
600
- st.subheader("GenAI Recommendations")
601
  genrec_container = st.container(border=False)
602
  role = genrec_container.radio(
603
- "Get your recommendation summary as:",
604
  ["Trader", "Equity Analyst"], horizontal=True)
605
 
606
  genrec = 'Recommendation for following day will go here.'
 
203
  # xaxis=dict(title='Date'),
204
  # yaxis=dict(title='Close Price', side='left', showgrid=False),
205
  # yaxis2=dict(title='MACD', side='right', overlaying='y', showgrid=False))
206
+ fig.update_layout(title='Close Price vs MACD')
207
  fig.update_xaxes(
208
  rangeslider_visible=False,
209
  rangeselector=dict(
 
581
 
582
  with final_recs:
583
  st.header("GenAI Recommendations")
584
+ st.write("""This module provides trading recommendation for the following day based on the current date.
585
+ For demo purpose this is restricted to test data from (Aug 12, 2021- Aug 31,2021).
586
+ The results shown here are based on our model's inference on this test data, which is available in the Colab Notebook.
587
+ Real time recommendation calls to GenAI based model can be provided as and when required as we are using paid services for model inference.""")
588
 
589
  if 'Trading_Recommendations\r' in events.columns:
590
  events.rename(columns={'Trading_Recommendations\r': 'Trading_Recommendations'}, inplace=True)
 
600
  # Reverse the array to have the latest date at index 0
601
  dates = dates[::-1]
602
  num_dates = len(dates)
603
+ # st.subheader("GenAI Recommendations")
604
  genrec_container = st.container(border=False)
605
  role = genrec_container.radio(
606
+ "Show recommendation summary as:",
607
  ["Trader", "Equity Analyst"], horizontal=True)
608
 
609
  genrec = 'Recommendation for following day will go here.'