Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -118,17 +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 |
-
|
122 |
-
|
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 |
-
|
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 |
-
|
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)
|
|
|
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 |
|
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)
|