SJLee-0525
commited on
Commit
·
2b426bd
1
Parent(s):
37ffd93
[CHORE] test12
Browse files- backend.py +2 -0
backend.py
CHANGED
|
@@ -221,9 +221,11 @@ app.add_middleware(
|
|
| 221 |
)
|
| 222 |
|
| 223 |
# Mount static files for hint images
|
|
|
|
| 224 |
app.mount("/images", StaticFiles(directory="images"), name="images")
|
| 225 |
|
| 226 |
# Mount static files for reference audio
|
|
|
|
| 227 |
app.mount("/reference_audio", StaticFiles(directory="reference_audio"), name="reference_audio")
|
| 228 |
|
| 229 |
|
|
|
|
| 221 |
)
|
| 222 |
|
| 223 |
# Mount static files for hint images
|
| 224 |
+
os.makedirs("images", exist_ok=True)
|
| 225 |
app.mount("/images", StaticFiles(directory="images"), name="images")
|
| 226 |
|
| 227 |
# Mount static files for reference audio
|
| 228 |
+
os.makedirs("reference_audio", exist_ok=True)
|
| 229 |
app.mount("/reference_audio", StaticFiles(directory="reference_audio"), name="reference_audio")
|
| 230 |
|
| 231 |
|