Geek7 commited on
Commit
80071c9
·
verified ·
1 Parent(s): 3bb41b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -118,14 +118,15 @@ def arima_forecast(data, p, d, q, steps):
118
 
119
  return predictions[-steps:]
120
 
 
121
  # Streamlit App
122
  def main():
123
  st.title("Stock Price Forecasting App")
124
 
125
  # Load stock data using Streamlit sidebar
126
  symbol = st.sidebar.text_input("Enter Stock Symbol", value='AAPL')
127
- start_date = st.sidebar.text_input("Enter Start Date", value='2021-01-01')
128
- end_date = st.sidebar.text_input("Enter End Date", value='2022-01-01')
129
  stock_prices = get_stock_data(symbol, start_date, end_date)
130
 
131
  # ARIMA parameters using Streamlit sliders
 
118
 
119
  return predictions[-steps:]
120
 
121
+ # Streamlit App
122
  # Streamlit App
123
  def main():
124
  st.title("Stock Price Forecasting App")
125
 
126
  # Load stock data using Streamlit sidebar
127
  symbol = st.sidebar.text_input("Enter Stock Symbol", value='AAPL')
128
+ start_date = st.sidebar.date_input("Select Start Date", pd.to_datetime('2021-01-01'))
129
+ end_date = st.sidebar.date_input("Select End Date", pd.to_datetime('2022-01-01'))
130
  stock_prices = get_stock_data(symbol, start_date, end_date)
131
 
132
  # ARIMA parameters using Streamlit sliders