Spaces:
Running
on
Zero
Running
on
Zero
Fix step error handling and wire up error_box
Browse files
app.py
CHANGED
@@ -38,9 +38,9 @@ def _save_to_disk(img):
|
|
38 |
if img is None:
|
39 |
return gr.skip()
|
40 |
|
41 |
-
os.makedirs("
|
42 |
ts = datetime.now().strftime("%Y%m%d_%H%M%S")
|
43 |
-
path = f"/
|
44 |
img.save(path)
|
45 |
return path
|
46 |
|
|
|
38 |
if img is None:
|
39 |
return gr.skip()
|
40 |
|
41 |
+
os.makedirs("./outputs", exist_ok=True)
|
42 |
ts = datetime.now().strftime("%Y%m%d_%H%M%S")
|
43 |
+
path = f"./outputs/step1_result_{ts}.png"
|
44 |
img.save(path)
|
45 |
return path
|
46 |
|