Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,6 @@ from cryptography.fernet import Fernet
|
|
19 |
import os
|
20 |
|
21 |
sd_decode = os.environ.get('sd_decode')
|
22 |
-
bbtries = 0
|
23 |
|
24 |
def freeimagehost(prompt, img, seed):
|
25 |
try:
|
@@ -93,7 +92,7 @@ def imagebb(prompt, img, seed):
|
|
93 |
print(r)
|
94 |
bbtries += 1
|
95 |
print(bbtries)
|
96 |
-
if bbtries <
|
97 |
return imagebb(prompt, img, seed)
|
98 |
else:
|
99 |
bbtries = 0
|
@@ -101,7 +100,7 @@ def imagebb(prompt, img, seed):
|
|
101 |
except Exception as e:
|
102 |
print(e)
|
103 |
bbtries += 1
|
104 |
-
if bbtries <
|
105 |
return imagebb(prompt, img, seed)
|
106 |
else:
|
107 |
bbtries = 0
|
|
|
19 |
import os
|
20 |
|
21 |
sd_decode = os.environ.get('sd_decode')
|
|
|
22 |
|
23 |
def freeimagehost(prompt, img, seed):
|
24 |
try:
|
|
|
92 |
print(r)
|
93 |
bbtries += 1
|
94 |
print(bbtries)
|
95 |
+
if bbtries < 5:
|
96 |
return imagebb(prompt, img, seed)
|
97 |
else:
|
98 |
bbtries = 0
|
|
|
100 |
except Exception as e:
|
101 |
print(e)
|
102 |
bbtries += 1
|
103 |
+
if bbtries < 5:
|
104 |
return imagebb(prompt, img, seed)
|
105 |
else:
|
106 |
bbtries = 0
|