瀏覽代碼

fix ffmpeg example

Falko Schindler 2 年之前
父節點
當前提交
cc6e811fac
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/ffmpeg_extract_images/main.py

+ 1 - 1
examples/ffmpeg_extract_images/main.py

@@ -33,7 +33,7 @@ async def handle_upload(args: events.UploadEventArguments):
         ui.notify('Please upload a video file')
         ui.notify('Please upload a video file')
     upload.run_method('reset')
     upload.run_method('reset')
 
 
-
+os.makedirs('data', exist_ok=True)
 app.add_static_files('/data', 'data')
 app.add_static_files('/data', 'data')
 
 
 with ui.column().classes('w-full items-center'):
 with ui.column().classes('w-full items-center'):