schnik commited on
Commit
80fb677
1 Parent(s): 7648dca

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +0 -1
  2. app.py +6 -6
README.md CHANGED
@@ -5,7 +5,6 @@ colorFrom: green
5
  colorTo: gray
6
  sdk: gradio
7
  sdk_version: 4.19.2
8
- python_version: 3.11
9
  app_file: app.py
10
  pinned: false
11
  license: mit
 
5
  colorTo: gray
6
  sdk: gradio
7
  sdk_version: 4.19.2
 
8
  app_file: app.py
9
  pinned: false
10
  license: mit
app.py CHANGED
@@ -21,25 +21,25 @@ def load_cached_video(video_file, dataset, lora, size):
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 meight 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 for this UI to work properly. Please be patient, as this meight take a moment.</span>')
30
  gr.Interface(fn=load_cached_video,
31
  inputs=[
32
- gr.Video(value="videos/n_5.mp4",
33
  label="Original Video",
34
  min_length=5,
 
35
  max_length=20,
36
- sources=[],
37
  show_download_button=True,
38
- include_audio=True,
39
- mirror_webcam=False
40
  ),
41
  gr.Radio(["nature", "symmv"],
42
  value="nature",
 
43
  label="Available Models",
44
  info="Choose one of the datasets on which the models has been trained on. Nature is a dataset of calm and relaxing sounds, symmv contains charts music. The model will generate audio that is similar to the training data."
45
  ),
 
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 first to use this UI properly. Please be patient, as the videos meight take a moment to download.</span>')
30
  gr.Interface(fn=load_cached_video,
31
  inputs=[
32
+ gr.Video(value="./videos/n_5.mp4",
33
  label="Original Video",
34
  min_length=5,
35
+ interactive=False,
36
  max_length=20,
 
37
  show_download_button=True,
38
+ include_audio=True
 
39
  ),
40
  gr.Radio(["nature", "symmv"],
41
  value="nature",
42
+ interactive=False,
43
  label="Available Models",
44
  info="Choose one of the datasets on which the models has been trained on. Nature is a dataset of calm and relaxing sounds, symmv contains charts music. The model will generate audio that is similar to the training data."
45
  ),