Spaces:
Runtime error
Runtime error
Commit
·
0fcff78
1
Parent(s):
88ca5ae
Update app.py
Browse files
app.py
CHANGED
@@ -72,13 +72,15 @@ def double_res(input_image):
|
|
72 |
|
73 |
# predicting all images at once
|
74 |
completed = False
|
75 |
-
n =
|
76 |
while not completed:
|
77 |
try:
|
|
|
78 |
predicted = model.predict(np.array(to_predict),batch_size = n)
|
79 |
completed = True
|
80 |
print("completed with "+ str(n))
|
81 |
except:
|
|
|
82 |
n += -1
|
83 |
if n <= 0:
|
84 |
n = 1
|
|
|
72 |
|
73 |
# predicting all images at once
|
74 |
completed = False
|
75 |
+
n = 16
|
76 |
while not completed:
|
77 |
try:
|
78 |
+
print("attempting with "+ str(n))
|
79 |
predicted = model.predict(np.array(to_predict),batch_size = n)
|
80 |
completed = True
|
81 |
print("completed with "+ str(n))
|
82 |
except:
|
83 |
+
print("attempt with " + str(n) + " failed")
|
84 |
n += -1
|
85 |
if n <= 0:
|
86 |
n = 1
|