LogicGoInfotechSpaces commited on
Commit
d9199ac
·
verified ·
1 Parent(s): 6c63af4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -221,6 +221,7 @@ with gr.Blocks() as demo:
221
  btn.click(process, [src, target_name], [out, msg])
222
 
223
  # ---------------- STATIC FILES (garment_output) ----------------
 
224
  fastapi_app.mount("/garment_output", StaticFiles(directory="garment_output"), name="garment_output")
225
 
226
  # --------------------- MOUNT GRADIO ---------------------
 
221
  btn.click(process, [src, target_name], [out, msg])
222
 
223
  # ---------------- STATIC FILES (garment_output) ----------------
224
+ os.makedirs("garment_output", exist_ok=True)
225
  fastapi_app.mount("/garment_output", StaticFiles(directory="garment_output"), name="garment_output")
226
 
227
  # --------------------- MOUNT GRADIO ---------------------