Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1261,14 +1261,14 @@ def handle_generation(h,w,d):
|
|
1261 |
pxs = h*w
|
1262 |
if pxs > 4 * (10 ** 6):
|
1263 |
difficulty_points + 3
|
1264 |
-
|
1265 |
difficulty_points + 2
|
1266 |
-
|
1267 |
difficulty_points + 1
|
1268 |
|
1269 |
if difficulty_points < 2:
|
1270 |
return easy_generation(h,w,d)
|
1271 |
-
|
1272 |
return balanced_generation(h,w,d)
|
1273 |
else:
|
1274 |
return hard_generation(h,w,d)
|
|
|
1261 |
pxs = h*w
|
1262 |
if pxs > 4 * (10 ** 6):
|
1263 |
difficulty_points + 3
|
1264 |
+
elif pxs > 3 * (10 ** 6):
|
1265 |
difficulty_points + 2
|
1266 |
+
elif pxs > 2 * (10 ** 6):
|
1267 |
difficulty_points + 1
|
1268 |
|
1269 |
if difficulty_points < 2:
|
1270 |
return easy_generation(h,w,d)
|
1271 |
+
elif difficulty_points < 4:
|
1272 |
return balanced_generation(h,w,d)
|
1273 |
else:
|
1274 |
return hard_generation(h,w,d)
|