Spaces:
Runtime error
Runtime error
Upload luciddreamer.py with huggingface_hub
Browse files- luciddreamer.py +1 -1
luciddreamer.py
CHANGED
|
@@ -205,7 +205,7 @@ class LucidDreamer:
|
|
| 205 |
|
| 206 |
def cleaner(self):
|
| 207 |
# Remove the temporary file created yesterday.
|
| 208 |
-
for dpath in glob.glob(os.path.join(self.root, '*')):
|
| 209 |
timestamp = datetime.datetime.strptime(os.path.basename(dpath), '%y%m%d_%H%M%S')
|
| 210 |
if timestamp < datetime.datetime.now() - datetime.timedelta(days=1):
|
| 211 |
try:
|
|
|
|
| 205 |
|
| 206 |
def cleaner(self):
|
| 207 |
# Remove the temporary file created yesterday.
|
| 208 |
+
for dpath in glob.glob(os.path.join('/tmp/gradio', '*', self.root, '*')):
|
| 209 |
timestamp = datetime.datetime.strptime(os.path.basename(dpath), '%y%m%d_%H%M%S')
|
| 210 |
if timestamp < datetime.datetime.now() - datetime.timedelta(days=1):
|
| 211 |
try:
|