sczhou commited on
Commit
d304d53
β€’
1 Parent(s): 296e4e0
web-demos/hugging_face/app.py CHANGED
@@ -22,8 +22,10 @@ from utils.download_util import load_file_from_url, download_url_to_file
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/76810782/281807801-69b9f70c-1e56-428d-9b1b-4870c5e533a7.mp4", os.path.join(sample_videos_path, "test-sample2.mp4"))
26
  download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/76810782/281808625-ad98f03f-99c7-4008-acf1-3d7beb48f13b.mp4", os.path.join(sample_videos_path, "test-sample3.mp4"))
 
27
 
28
 
29
  def parse_augment():
@@ -638,7 +640,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=css) as iface:
638
  # set example
639
  gr.Markdown("## Examples")
640
  gr.Examples(
641
- examples=[os.path.join(os.path.dirname(__file__), "./test_sample/", test_sample) for test_sample in ["test-sample0.mp4", "test-sample2.mp4", "test-sample3.mp4"]],
642
  inputs=[video_input],
643
  )
644
  gr.Markdown(article)
 
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"))
27
  download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/76810782/281808625-ad98f03f-99c7-4008-acf1-3d7beb48f13b.mp4", os.path.join(sample_videos_path, "test-sample3.mp4"))
28
+ download_url_to_file("https://github-production-user-asset-6210df.s3.amazonaws.com/14334509/281828066-ee09ae82-916f-4a2e-a6c7-6fc50645fd20.mp4", os.path.join(sample_videos_path, "test-sample4.mp4"))
29
 
30
 
31
  def parse_augment():
 
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)
web-demos/hugging_face/test_sample/test-sample0.mp4 DELETED
Binary file (337 kB)
 
web-demos/hugging_face/test_sample/test-sample2.mp4 DELETED
Binary file (317 kB)
 
web-demos/hugging_face/test_sample/test-sample3.mp4 DELETED
Binary file (345 kB)