dj86 commited on
Commit
40d9c55
1 Parent(s): 3703c89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -114,7 +114,7 @@ def subvid_fn(vid):
114
 
115
  # 本地上传,适用于Running on local URL: http://127.0.0.1:6006
116
  def uploaded_video(video_file):
117
- UPLOAD_FOLDER = "./examples"
118
  if not os.path.exists(UPLOAD_FOLDER):
119
  os.mkdir(UPLOAD_FOLDER)
120
  shutil.copy(video_file, UPLOAD_FOLDER)
@@ -321,8 +321,8 @@ with gr.Blocks(css=css) as demo:
321
  gr.Markdown("请点击下方视频(任意选择一个视频进行播放)", elem_id="hint")
322
  examples = gr.Examples(
323
  examples=[
324
- ["examples/BV11H4y1F7uH.mp4"],
325
- ["examples/BV1J14y1d7X4.mp4"],
326
  ],
327
  inputs=[video_inp],
328
  )
 
114
 
115
  # 本地上传,适用于Running on local URL: http://127.0.0.1:6006
116
  def uploaded_video(video_file):
117
+ UPLOAD_FOLDER = "./"
118
  if not os.path.exists(UPLOAD_FOLDER):
119
  os.mkdir(UPLOAD_FOLDER)
120
  shutil.copy(video_file, UPLOAD_FOLDER)
 
321
  gr.Markdown("请点击下方视频(任意选择一个视频进行播放)", elem_id="hint")
322
  examples = gr.Examples(
323
  examples=[
324
+ ["./BV11H4y1F7uH.mp4"],
325
+ ["./BV1J14y1d7X4.mp4"],
326
  ],
327
  inputs=[video_inp],
328
  )