Spaces:
Running
Running
Update app.py
Browse files
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.
|
| 322 |
-
rand_timeframe_offset = random.
|
| 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.
|
| 354 |
-
rand_timeframe_offset = random.
|
| 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.
|
| 386 |
-
rand_timeframe_offset = random.
|
| 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 |
|