Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def train_stock_model(stock_symbol, start_date, end_date, feature_range=(10, 100
|
|
124 |
)
|
125 |
return f"Training completed and model saved for {stock_symbol} from {start_date} to {end_date}."
|
126 |
|
127 |
-
@spaces.GPU
|
128 |
def gradio_train_stock_model(stock_symbol, start_date, end_date, feature_range_min, feature_range_max, data_seq_length, epochs, batch_size, learning_rate):
|
129 |
feature_range = (feature_range_min, feature_range_max)
|
130 |
result = train_stock_model(
|
|
|
124 |
)
|
125 |
return f"Training completed and model saved for {stock_symbol} from {start_date} to {end_date}."
|
126 |
|
127 |
+
@spaces.GPU(duration=300)
|
128 |
def gradio_train_stock_model(stock_symbol, start_date, end_date, feature_range_min, feature_range_max, data_seq_length, epochs, batch_size, learning_rate):
|
129 |
feature_range = (feature_range_min, feature_range_max)
|
130 |
result = train_stock_model(
|