Vaibhav-vinci commited on
Commit
a3528e5
1 Parent(s): 5af9021

Modified app.py and mended requirements

Browse files
Files changed (2) hide show
  1. app.py +3 -4
  2. requirements.txt +0 -0
app.py CHANGED
@@ -1,10 +1,9 @@
1
- # pip install streamlit fbprophet yfinance plotly
2
  import streamlit as st
3
  from datetime import date
4
 
5
  import yfinance as yf
6
- from fbprophet import Prophet
7
- from fbprophet.plot import plot_plotly
8
  from plotly import graph_objs as go
9
 
10
  START = "2015-01-01"
@@ -19,7 +18,7 @@ n_years = st.slider('Years of prediction:', 1, 4)
19
  period = n_years * 365
20
 
21
 
22
- @st.cache
23
  def load_data(ticker):
24
  data = yf.download(ticker, START, TODAY)
25
  data.reset_index(inplace=True)
 
 
1
  import streamlit as st
2
  from datetime import date
3
 
4
  import yfinance as yf
5
+ from prophet import Prophet
6
+ from prophet.plot import plot_plotly
7
  from plotly import graph_objs as go
8
 
9
  START = "2015-01-01"
 
18
  period = n_years * 365
19
 
20
 
21
+ @st.cache_data
22
  def load_data(ticker):
23
  data = yf.download(ticker, START, TODAY)
24
  data.reset_index(inplace=True)
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ