mistermprah commited on
Commit
137375b
·
verified ·
1 Parent(s): 2d3ea73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -118,16 +118,17 @@ with gr.Blocks() as app:
118
  with gr.Tab("Predict Today's Price"):
119
  gr.Markdown("## Predict Today's Price")
120
  ticker_input = gr.Dropdown(choices=stock_list, label="Stock Ticker")
121
- open_price = gr.Number(label="Open")
122
- close_price = gr.Number(label="Close")
123
  predict_button = gr.Button("Predict")
124
  predict_output = gr.Textbox()
125
- predict_button.click(predict_stock_price, inputs=[ticker_input, open_price, close_price], outputs=predict_output)
 
126
 
127
- with gr.Tab("Predict Next Month's Price"):
128
- gr.Markdown("## Predict Next Month's Price")
129
  next_month_ticker_input = gr.Dropdown(choices=stock_list, label="Stock Ticker")
130
- next_month_close_price = gr.Number(label="Close")
131
  next_month_predict_button = gr.Button("Predict")
132
  next_month_predict_output = gr.Textbox()
133
  next_month_predict_button.click(predict_next_month_price, inputs=[next_month_ticker_input, next_month_close_price], outputs=next_month_predict_output)
 
118
  with gr.Tab("Predict Today's Price"):
119
  gr.Markdown("## Predict Today's Price")
120
  ticker_input = gr.Dropdown(choices=stock_list, label="Stock Ticker")
121
+ #open_price = gr.Number(label="Open")
122
+ #close_price = gr.Number(label="Close")
123
  predict_button = gr.Button("Predict")
124
  predict_output = gr.Textbox()
125
+ predict_button.click(predict_stock_price, inputs=[ticker_input], outputs=predict_output)
126
+ #, open_price, close_price
127
 
128
+ with gr.Tab("Predict Next 30 Days Price"):
129
+ gr.Markdown("## Predict Next 30 Days Price")
130
  next_month_ticker_input = gr.Dropdown(choices=stock_list, label="Stock Ticker")
131
+ #next_month_close_price = gr.Number(label="Close")
132
  next_month_predict_button = gr.Button("Predict")
133
  next_month_predict_output = gr.Textbox()
134
  next_month_predict_button.click(predict_next_month_price, inputs=[next_month_ticker_input, next_month_close_price], outputs=next_month_predict_output)