theoracle commited on
Commit
766704a
·
1 Parent(s): 47149ab

Fix step error handling and wire up error_box

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("/tmp/gradio_outputs", exist_ok=True)
42
  ts = datetime.now().strftime("%Y%m%d_%H%M%S")
43
- path = f"/tmp/gradio_outputs/step1_result_{ts}.png"
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