Q-bert commited on
Commit
3434018
·
verified ·
1 Parent(s): aa43490

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(