Yilin98 commited on
Commit
84dfcbc
·
1 Parent(s): 7073d37

add stock history image

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -48,7 +48,10 @@ with right_column:
48
  stock_df = get_stock_price(option_ticker, datetime(2023, 1, 5), datetime(2023, 1, 6))
49
  st.table(stock_df)
50
 
51
- st.subheader("LSTM-based 7-day stock price prediction model")
 
 
 
52
 
53
  with st.spinner("Loading LSTM model from Hopsworks.."):
54
  date, value = model(option_ticker)
 
48
  stock_df = get_stock_price(option_ticker, datetime(2023, 1, 5), datetime(2023, 1, 6))
49
  st.table(stock_df)
50
 
51
+ st.subheader("LSTM-based stock price prediction model")
52
+
53
+ get_history_plot_from_hopsworks(option_ticker)
54
+ st.image("stock_prediction.png", caption="Stock Prediction History")
55
 
56
  with st.spinner("Loading LSTM model from Hopsworks.."):
57
  date, value = model(option_ticker)