Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -9,7 +9,7 @@ app = FastAPI()
|
|
9 |
UPLOAD_DIR = "/code/app/content/"
|
10 |
|
11 |
@app.on_event("startup")
|
12 |
-
|
13 |
# Check and create the directory if it doesn't exist
|
14 |
os.makedirs(UPLOAD_DIR, exist_ok=True)
|
15 |
|
|
|
9 |
UPLOAD_DIR = "/code/app/content/"
|
10 |
|
11 |
@app.on_event("startup")
|
12 |
+
def startup_event():
|
13 |
# Check and create the directory if it doesn't exist
|
14 |
os.makedirs(UPLOAD_DIR, exist_ok=True)
|
15 |
|