Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ pipe.fuse_lora()
|
|
67 |
def safe_filename(text):
|
68 |
"""Generate a safe filename from a string."""
|
69 |
safe_text = re.sub(r'\W+', '_', text)
|
70 |
-
timestamp = datetime.now().strftime("%Y%m%
|
71 |
return f"{safe_text}_{timestamp}.png"
|
72 |
|
73 |
def encode_image(image):
|
|
|
67 |
def safe_filename(text):
|
68 |
"""Generate a safe filename from a string."""
|
69 |
safe_text = re.sub(r'\W+', '_', text)
|
70 |
+
timestamp = datetime.datetime.now().strftime("%Y%m%d")
|
71 |
return f"{safe_text}_{timestamp}.png"
|
72 |
|
73 |
def encode_image(image):
|