Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -184,7 +184,7 @@ def check_nsfw_final(img_url):
|
|
| 184 |
|
| 185 |
# Directory for serving frame images
|
| 186 |
FRAMES_DIR = "/tmp/frames"
|
| 187 |
-
|
| 188 |
# Mount static file route
|
| 189 |
app.mount("/frames", StaticFiles(directory=FRAMES_DIR), name="frames")
|
| 190 |
|
|
|
|
| 184 |
|
| 185 |
# Directory for serving frame images
|
| 186 |
FRAMES_DIR = "/tmp/frames"
|
| 187 |
+
os.makedirs(FRAMES_DIR, exist_ok=True)
|
| 188 |
# Mount static file route
|
| 189 |
app.mount("/frames", StaticFiles(directory=FRAMES_DIR), name="frames")
|
| 190 |
|