Spaces:
Runtime error
Runtime error
debug.
Browse files
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__), "
|
| 24 |
print(sample_videos_path)
|
| 25 |
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"))
|
| 26 |
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"))
|
|
@@ -641,7 +641,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=css) as iface:
|
|
| 641 |
# set example
|
| 642 |
gr.Markdown("## Examples")
|
| 643 |
gr.Examples(
|
| 644 |
-
examples=[os.path.join(os.path.dirname(__file__), "
|
| 645 |
inputs=[video_input],
|
| 646 |
)
|
| 647 |
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 |
print(sample_videos_path)
|
| 25 |
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"))
|
| 26 |
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"))
|
|
|
|
| 641 |
# set example
|
| 642 |
gr.Markdown("## Examples")
|
| 643 |
gr.Examples(
|
| 644 |
+
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"]],
|
| 645 |
inputs=[video_input],
|
| 646 |
)
|
| 647 |
gr.Markdown(article)
|