Update app.py
Browse files
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 ---------------------
|