Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,6 +123,7 @@ def gradio_train_stock_model(stock_symbol, start_date, end_date, feature_range_m
|
|
| 123 |
learning_rate=learning_rate
|
| 124 |
)
|
| 125 |
return f"Training initiated for {stock_symbol} from {start_date} to {end_date}."
|
|
|
|
| 126 |
iface = gr.Interface(
|
| 127 |
fn=gradio_train_stock_model,
|
| 128 |
inputs=[
|
|
@@ -137,8 +138,7 @@ iface = gr.Interface(
|
|
| 137 |
gr.Slider(minimum=1e-5, maximum=1e-1, step=1e-5, label="Learning Rate", value=2e-4)
|
| 138 |
],
|
| 139 |
outputs="text",
|
| 140 |
-
live=False
|
| 141 |
-
layout="vertical"
|
| 142 |
)
|
| 143 |
|
| 144 |
iface.add_button(
|
|
|
|
| 123 |
learning_rate=learning_rate
|
| 124 |
)
|
| 125 |
return f"Training initiated for {stock_symbol} from {start_date} to {end_date}."
|
| 126 |
+
|
| 127 |
iface = gr.Interface(
|
| 128 |
fn=gradio_train_stock_model,
|
| 129 |
inputs=[
|
|
|
|
| 138 |
gr.Slider(minimum=1e-5, maximum=1e-1, step=1e-5, label="Learning Rate", value=2e-4)
|
| 139 |
],
|
| 140 |
outputs="text",
|
| 141 |
+
live=False
|
|
|
|
| 142 |
)
|
| 143 |
|
| 144 |
iface.add_button(
|