bitopsy commited on
Commit
41e3a17
·
1 Parent(s): cc8a67d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
-
3
  # Tickers to choose from
4
  tickers = ['AAPL', 'AMZN', 'NIO', 'AMD', 'NVDA', 'META', 'PLUG', 'INTC', 'FORD', 'TSLA', 'GOOGL']
5
 
@@ -37,7 +37,8 @@ stock_names = {
37
  st.title("Stock Forecaster")
38
 
39
  # Create a dropdown to select a ticker
40
- selected_ticker = st.selectbox("Select a ticker:", tickers)
 
41
 
42
  # Display the image for the selected ticker
43
  if selected_ticker:
@@ -48,5 +49,5 @@ if selected_ticker:
48
  stock_name = stock_names[selected_ticker]
49
  st.write(f"Stock name: {stock_name}")
50
 
51
- st.markdown("This app has been trained on the past 6 years of data until November 22nd, 2023 for each of the selected stocks. For a more comprehensive analysis with a different date range, access to thousands of stocks, hundreds of cryptocurrencies, and more up-to-date predictions, please visit our website: https://stock.quu.fr")
52
 
 
1
  import streamlit as st
2
+ import streamlit_analytics
3
  # Tickers to choose from
4
  tickers = ['AAPL', 'AMZN', 'NIO', 'AMD', 'NVDA', 'META', 'PLUG', 'INTC', 'FORD', 'TSLA', 'GOOGL']
5
 
 
37
  st.title("Stock Forecaster")
38
 
39
  # Create a dropdown to select a ticker
40
+ with streamlit_analytics.track(firestore_key_file="firebase-key.json", firestore_collection_name="counts"):
41
+ selected_ticker = st.selectbox("Select a ticker:", tickers)
42
 
43
  # Display the image for the selected ticker
44
  if selected_ticker:
 
49
  stock_name = stock_names[selected_ticker]
50
  st.write(f"Stock name: {stock_name}")
51
 
52
+ st.markdown("This model has been trained on the past 6 years of data until November 22nd, 2023 for each of the selected stocks. For a more comprehensive analysis with a different date range, access to thousands of stocks, hundreds of cryptocurrencies, and more up-to-date predictions, please visit our website: https://stock.quu.fr")
53