freegpu commited on
Commit
880ba02
·
verified ·
1 Parent(s): 82bb9ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -318,8 +318,8 @@ def run_prediction_workflow(CryptoName="BTC", Limit=500, Timeframe=12, marketTyp
318
  class1 = 0
319
 
320
  for attempt in range(max_retries_per_iteration):
321
- rand_limit_offset = random.randint(-100, 100)
322
- rand_timeframe_offset = random.randint(-5, 5)
323
  current_limit_for_attempt = max(100, base_limit_1 + rand_limit_offset)
324
  current_timeframe_for_attempt = max(5, base_timeframe_1 + rand_timeframe_offset)
325
 
@@ -350,8 +350,8 @@ def run_prediction_workflow(CryptoName="BTC", Limit=500, Timeframe=12, marketTyp
350
  class2 = 0
351
 
352
  for attempt in range(max_retries_per_iteration):
353
- rand_limit_offset = random.randint(-100, 100)
354
- rand_timeframe_offset = random.randint(-5, 5)
355
  current_limit_for_attempt = max(100, base_limit_2 + rand_limit_offset)
356
  current_timeframe_for_attempt = max(5, base_timeframe_2 + rand_timeframe_offset)
357
 
@@ -382,8 +382,8 @@ def run_prediction_workflow(CryptoName="BTC", Limit=500, Timeframe=12, marketTyp
382
  class3 = 0
383
 
384
  for attempt in range(max_retries_per_iteration):
385
- rand_limit_offset = random.randint(-100, 100)
386
- rand_timeframe_offset = random.randint(-5, 5)
387
  current_limit_for_attempt = max(100, base_limit_3 + rand_limit_offset)
388
  current_timeframe_for_attempt = max(5, base_timeframe_3 + rand_timeframe_offset)
389
 
 
318
  class1 = 0
319
 
320
  for attempt in range(max_retries_per_iteration):
321
+ rand_limit_offset = random.randrange(-100, 101, 2)
322
+ rand_timeframe_offset = random.randrange(-6, 7, 2)
323
  current_limit_for_attempt = max(100, base_limit_1 + rand_limit_offset)
324
  current_timeframe_for_attempt = max(5, base_timeframe_1 + rand_timeframe_offset)
325
 
 
350
  class2 = 0
351
 
352
  for attempt in range(max_retries_per_iteration):
353
+ rand_limit_offset = random.randrange(-100, 101, 2)
354
+ rand_timeframe_offset = random.randrange(-6, 7, 2)
355
  current_limit_for_attempt = max(100, base_limit_2 + rand_limit_offset)
356
  current_timeframe_for_attempt = max(5, base_timeframe_2 + rand_timeframe_offset)
357
 
 
382
  class3 = 0
383
 
384
  for attempt in range(max_retries_per_iteration):
385
+ rand_limit_offset = random.randrange(-100, 101, 2)
386
+ rand_timeframe_offset = random.randrange(-6, 7, 2)
387
  current_limit_for_attempt = max(100, base_limit_3 + rand_limit_offset)
388
  current_timeframe_for_attempt = max(5, base_timeframe_3 + rand_timeframe_offset)
389