sdafd commited on
Commit
a681854
·
verified ·
1 Parent(s): 8d0b085

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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