Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -170,7 +170,7 @@ def generate(
|
|
170 |
images = result.images
|
171 |
for i, image in enumerate(images): # loop over each image
|
172 |
filename = (
|
173 |
-
"data/"
|
174 |
+ sanitize_filename(re.sub(r"\s+", "_", prompt)[:50])
|
175 |
+ f"_{i}_{datetime.now().timestamp()}"
|
176 |
)
|
|
|
170 |
images = result.images
|
171 |
for i, image in enumerate(images): # loop over each image
|
172 |
filename = (
|
173 |
+
"/data/"
|
174 |
+ sanitize_filename(re.sub(r"\s+", "_", prompt)[:50])
|
175 |
+ f"_{i}_{datetime.now().timestamp()}"
|
176 |
)
|