freegpu commited on
Commit
82bb9ab
·
verified ·
1 Parent(s): 985c11f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -282,7 +282,7 @@ def _train_and_predict(CryptoName, Limit, Timeframe, marketType, ohlcv_timeframe
282
  hidden_dim = 20
283
  num_layers = 2
284
  output_dim = 256 # As per the LSTM class
285
- num_epochs = 700
286
 
287
  model = LSTM(input_dim=input_dim, hidden_dim=hidden_dim, output_dim=output_dim, num_layers=num_layers).to(device)
288
  criterion = nn.BCEWithLogitsLoss()
@@ -488,7 +488,7 @@ def predict_crypto_gradio(crypto_name, limit, market_type, ohlcv_timeframe):
488
  Timeframe=timeframe_lstm, # Renamed to avoid conflict with ohlcv_timeframe
489
  marketType=market_type,
490
  ohlcv_timeframe=ohlcv_timeframe,
491
- max_retries_per_iteration=4
492
  )
493
 
494
  # Format the output string as requested
 
282
  hidden_dim = 20
283
  num_layers = 2
284
  output_dim = 256 # As per the LSTM class
285
+ num_epochs = 800
286
 
287
  model = LSTM(input_dim=input_dim, hidden_dim=hidden_dim, output_dim=output_dim, num_layers=num_layers).to(device)
288
  criterion = nn.BCEWithLogitsLoss()
 
488
  Timeframe=timeframe_lstm, # Renamed to avoid conflict with ohlcv_timeframe
489
  marketType=market_type,
490
  ohlcv_timeframe=ohlcv_timeframe,
491
+ max_retries_per_iteration=5
492
  )
493
 
494
  # Format the output string as requested