mistermprah commited on
Commit
6d1de8e
·
verified ·
1 Parent(s): 4708b6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -116,10 +116,10 @@ def display_historical_data(ticker):
116
  # Streamlit interface
117
  st.title("Stockstream")
118
 
119
- tab1, tab2, tab3 = st.tabs(["Predict Today's Price", "Predict Next Month's Price", "View Historical Data"])
120
 
121
  with tab1:
122
- st.header("Predict Today's Price")
123
  ticker_input = st.selectbox("Stock Ticker", stock_list, key="today_ticker")
124
  open_price = st.number_input("Open Price", value=0.0, key="today_open_price")
125
  close_price = st.number_input("Close Price", value=0.0, key="today_close_price")
@@ -128,7 +128,7 @@ with tab1:
128
  st.write(result)
129
 
130
  with tab2:
131
- st.header("Predict Next Month's Price")
132
  next_month_ticker_input = st.selectbox("Stock Ticker", stock_list, key="next_month_ticker")
133
  next_month_close_price = st.number_input("Close Price", value=0.0, key="next_month_close_price")
134
  if st.button("Predict Next Month's Price"):
@@ -136,7 +136,7 @@ with tab2:
136
  st.write(result)
137
 
138
  with tab3:
139
- st.header("View Historical Data")
140
  historical_ticker_input = st.selectbox("Stock Ticker", stock_list, key="historical_ticker")
141
  if st.button("View Data"):
142
  data = display_historical_data(historical_ticker_input)
 
116
  # Streamlit interface
117
  st.title("Stockstream")
118
 
119
+ tab1, tab2, tab3 = st.tabs(["Today's Price", "Next Month's Price", "Historical Data"])
120
 
121
  with tab1:
122
+ st.header("Today's Price")
123
  ticker_input = st.selectbox("Stock Ticker", stock_list, key="today_ticker")
124
  open_price = st.number_input("Open Price", value=0.0, key="today_open_price")
125
  close_price = st.number_input("Close Price", value=0.0, key="today_close_price")
 
128
  st.write(result)
129
 
130
  with tab2:
131
+ st.header("Next Month's Price")
132
  next_month_ticker_input = st.selectbox("Stock Ticker", stock_list, key="next_month_ticker")
133
  next_month_close_price = st.number_input("Close Price", value=0.0, key="next_month_close_price")
134
  if st.button("Predict Next Month's Price"):
 
136
  st.write(result)
137
 
138
  with tab3:
139
+ st.header("Historical Data")
140
  historical_ticker_input = st.selectbox("Stock Ticker", stock_list, key="historical_ticker")
141
  if st.button("View Data"):
142
  data = display_historical_data(historical_ticker_input)