sczhou commited on
Commit
c86b915
β€’
1 Parent(s): d304d53
Files changed (1) hide show
  1. web-demos/hugging_face/app.py +2 -2
web-demos/hugging_face/app.py CHANGED
@@ -20,7 +20,7 @@ from model.misc import get_device
20
  from utils.download_util import load_file_from_url, download_url_to_file
21
 
22
  # make sample videos into mp4 as git does not allow mp4 without lfs
23
- sample_videos_path = os.path.join(os.path.dirname(__file__), "./test_sample/")
24
  download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/14334509/281805130-e57c7016-5a6d-4d3b-9df9-b4ea6372cc87.mp4", os.path.join(sample_videos_path, "test-sample0.mp4"))
25
  download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/14334509/281828039-5def0fc9-3a22-45b7-838d-6bf78b6772c3.mp4", os.path.join(sample_videos_path, "test-sample1.mp4"))
26
  download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/76810782/281807801-69b9f70c-1e56-428d-9b1b-4870c5e533a7.mp4", os.path.join(sample_videos_path, "test-sample2.mp4"))
@@ -640,7 +640,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=css) as iface:
640
  # set example
641
  gr.Markdown("## Examples")
642
  gr.Examples(
643
- examples=[os.path.join(os.path.dirname(__file__), "./test_sample/", test_sample) for test_sample in ["test-sample0.mp4", "test-sample1.mp4", "test-sample2.mp4", "test-sample3.mp4", "test-sample4.mp4"]],
644
  inputs=[video_input],
645
  )
646
  gr.Markdown(article)
 
20
  from utils.download_util import load_file_from_url, download_url_to_file
21
 
22
  # make sample videos into mp4 as git does not allow mp4 without lfs
23
+ sample_videos_path = os.path.join(os.path.dirname(__file__), "/test_sample/")
24
  download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/14334509/281805130-e57c7016-5a6d-4d3b-9df9-b4ea6372cc87.mp4", os.path.join(sample_videos_path, "test-sample0.mp4"))
25
  download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/14334509/281828039-5def0fc9-3a22-45b7-838d-6bf78b6772c3.mp4", os.path.join(sample_videos_path, "test-sample1.mp4"))
26
  download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/76810782/281807801-69b9f70c-1e56-428d-9b1b-4870c5e533a7.mp4", os.path.join(sample_videos_path, "test-sample2.mp4"))
 
640
  # set example
641
  gr.Markdown("## Examples")
642
  gr.Examples(
643
+ examples=[os.path.join(os.path.dirname(__file__), "/test_sample/", test_sample) for test_sample in ["test-sample0.mp4", "test-sample1.mp4", "test-sample2.mp4", "test-sample3.mp4", "test-sample4.mp4"]],
644
  inputs=[video_input],
645
  )
646
  gr.Markdown(article)