Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -218,6 +218,7 @@ def sd(prompt):
|
|
218 |
return img, 'Your download URL: ' + link[0] + '<br> Seed: ' + seed
|
219 |
except Exception as e:
|
220 |
print(keyid, '\n' ,e)
|
|
|
221 |
sdtries += 1
|
222 |
if sdtries < 5:
|
223 |
print("Retrying...")
|
|
|
218 |
return img, 'Your download URL: ' + link[0] + '<br> Seed: ' + seed
|
219 |
except Exception as e:
|
220 |
print(keyid, '\n' ,e)
|
221 |
+
global sdtries
|
222 |
sdtries += 1
|
223 |
if sdtries < 5:
|
224 |
print("Retrying...")
|