Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,12 @@ os.system('pip install streamlit_analytics')
|
|
4 |
|
5 |
import streamlit as st
|
6 |
import streamlit_analytics
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# Tickers to choose from
|
8 |
tickers = ['AAPL', 'AMZN', 'NIO', 'AMD', 'NVDA', 'META', 'PLUG', 'INTC', 'FORD', 'TSLA', 'GOOGL']
|
9 |
|
@@ -41,7 +47,7 @@ stock_names = {
|
|
41 |
st.title("Stock Forecaster")
|
42 |
|
43 |
# Create a dropdown to select a ticker
|
44 |
-
with streamlit_analytics.track():
|
45 |
selected_ticker = st.selectbox("Select a ticker:", tickers)
|
46 |
|
47 |
# Display the image for the selected ticker
|
@@ -55,5 +61,5 @@ if selected_ticker:
|
|
55 |
|
56 |
st.markdown(":warning: The content of this website is for educational purposes and is not a financial advice")
|
57 |
|
58 |
-
st.markdown(":
|
59 |
|
|
|
4 |
|
5 |
import streamlit as st
|
6 |
import streamlit_analytics
|
7 |
+
|
8 |
+
try:
|
9 |
+
streamlit_analytics.track(load_from_json="demand.json")
|
10 |
+
except:
|
11 |
+
pass
|
12 |
+
|
13 |
# Tickers to choose from
|
14 |
tickers = ['AAPL', 'AMZN', 'NIO', 'AMD', 'NVDA', 'META', 'PLUG', 'INTC', 'FORD', 'TSLA', 'GOOGL']
|
15 |
|
|
|
47 |
st.title("Stock Forecaster")
|
48 |
|
49 |
# Create a dropdown to select a ticker
|
50 |
+
with streamlit_analytics.track(save_to_json="demand.json"):
|
51 |
selected_ticker = st.selectbox("Select a ticker:", tickers)
|
52 |
|
53 |
# Display the image for the selected ticker
|
|
|
61 |
|
62 |
st.markdown(":warning: The content of this website is for educational purposes and is not a financial advice")
|
63 |
|
64 |
+
st.markdown(":information_source: 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")
|
65 |
|