Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
3e3af42
1
Parent(s):
944cbf7
Update app.py
Browse files
app.py
CHANGED
@@ -114,8 +114,7 @@ def generate(prompt, quality_tags, neg_prompt, seed, scale, width, height, steps
|
|
114 |
save_path = client_config['save_path']
|
115 |
today = datetime.date.today().strftime('%Y-%m-%d')
|
116 |
today_path = os.path.join(save_path, today)
|
117 |
-
|
118 |
-
os.makedirs(today_path, mode=777, exist_ok=True)
|
119 |
filename = str(today_count).rjust(5, '0') + '-' + str(payload['parameters']['seed']) + '.png'
|
120 |
pnginfo_data = PngImagePlugin.PngInfo()
|
121 |
for k, v in img.info.items():
|
|
|
114 |
save_path = client_config['save_path']
|
115 |
today = datetime.date.today().strftime('%Y-%m-%d')
|
116 |
today_path = os.path.join(save_path, today)
|
117 |
+
os.makedirs(today_path, exist_ok=True)
|
|
|
118 |
filename = str(today_count).rjust(5, '0') + '-' + str(payload['parameters']['seed']) + '.png'
|
119 |
pnginfo_data = PngImagePlugin.PngInfo()
|
120 |
for k, v in img.info.items():
|