Ahsen Khaliq commited on
Commit
bd7db97
·
1 Parent(s): 4ce8040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
  os.system("git clone https://github.com/v-iashin/SpecVQGAN")
3
- os.system("pip install pytorch-lightning==1.2.10 omegaconf==2.0.6 streamlit==0.80 matplotlib==3.4.1 albumentations==0.5.2 SoundFile torch torchvision librosa gradio==2.3.7")
4
 
5
  from pathlib import Path
6
  import soundfile
@@ -74,7 +74,7 @@ title = "SpecVQGAN Neural Audio Codec"
74
  description = "Gradio demo for Spectrogram VQGAN as a Neural Audio Codec. To use it, simply add your audio, or click one of the examples to load them. Read more at the links below."
75
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2110.08791' target='_blank'>Taming Visually Guided Sound Generation</a> | <a href='https://github.com/v-iashin/SpecVQGAN' target='_blank'>Github Repo</a></p>"
76
 
77
- examples=[['example.wav']]
78
  gr.Interface(
79
  inference,
80
  gr.inputs.Audio(type="file", label="Input Audio"),
 
1
  import os
2
  os.system("git clone https://github.com/v-iashin/SpecVQGAN")
3
+ os.system("pip install pytorch-lightning==1.2.10 omegaconf==2.0.6 streamlit==0.80 matplotlib==3.4.1 albumentations==0.5.2 SoundFile torch torchvision librosa")
4
 
5
  from pathlib import Path
6
  import soundfile
 
74
  description = "Gradio demo for Spectrogram VQGAN as a Neural Audio Codec. To use it, simply add your audio, or click one of the examples to load them. Read more at the links below."
75
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2110.08791' target='_blank'>Taming Visually Guided Sound Generation</a> | <a href='https://github.com/v-iashin/SpecVQGAN' target='_blank'>Github Repo</a></p>"
76
 
77
+ examples=[['/home/user/app/examples.wav']]
78
  gr.Interface(
79
  inference,
80
  gr.inputs.Audio(type="file", label="Input Audio"),