Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -19,14 +19,14 @@ def load_cached_video(video_file, dataset, lora, size):
|
|
19 |
|
20 |
if not os.path.exists(output):
|
21 |
print(output)
|
22 |
-
raise gr.Error("This combination of video and model has not been cached.
|
23 |
|
24 |
-
gr.Warning("This interface is running on CPU. Only cached generated examples are displayed here, no new music is generated.")
|
25 |
print("Displaying video: " + output)
|
26 |
return output
|
27 |
|
28 |
with gr.Blocks() as demo:
|
29 |
-
gr.Markdown('**WARNING**: <span style="color:orange">Multiple video examples have to be downloaded
|
30 |
gr.Interface(fn=load_cached_video,
|
31 |
inputs=[
|
32 |
gr.Video(
|
|
|
19 |
|
20 |
if not os.path.exists(output):
|
21 |
print(output)
|
22 |
+
raise gr.Error("This combination of video and model has not been cached. Try one of the listed examples instead.")
|
23 |
|
24 |
+
gr.Warning("This interface is running on CPU. Only cached generated examples are displayed here, no new music is generated. Please be patient, as the videos might take a while to download.")
|
25 |
print("Displaying video: " + output)
|
26 |
return output
|
27 |
|
28 |
with gr.Blocks() as demo:
|
29 |
+
gr.Markdown('**WARNING**: <span style="color:orange">Multiple video examples have to be downloaded to use this UI properly. Please be patient, as the videos might take a moment to download.</span>')
|
30 |
gr.Interface(fn=load_cached_video,
|
31 |
inputs=[
|
32 |
gr.Video(
|