jadechoghari commited on
Commit
a66e2eb
1 Parent(s): 7d46ae3

remove npy req

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -11,7 +11,6 @@ os.system('pip install xformers==0.0.26.post1')
11
  os.system('pip install torchlibrosa==0.0.9 librosa==0.9.2')
12
  os.system('pip install -q pytorch_lightning==2.1.3 torchlibrosa==0.0.9 librosa==0.9.2 ftfy==6.1.1 braceexpand')
13
  os.system('pip install torch==2.3.0+cu121 torchvision==0.18.0+cu121 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121')
14
- os.system('pip install numpy==1.23.5')
15
 
16
  # only then import the necessary modules from qa_mdt
17
  from qa_mdt.pipeline import MOSDiffusionPipeline
@@ -20,7 +19,7 @@ from qa_mdt.pipeline import MOSDiffusionPipeline
20
  pipe = MOSDiffusionPipeline()
21
 
22
  # this runs the pipeline with user input and saves the output as 'awesome.wav'
23
- @spaces.GPU(duration=120)
24
  def generate_waveform(description):
25
  pipe(description)
26
 
 
11
  os.system('pip install torchlibrosa==0.0.9 librosa==0.9.2')
12
  os.system('pip install -q pytorch_lightning==2.1.3 torchlibrosa==0.0.9 librosa==0.9.2 ftfy==6.1.1 braceexpand')
13
  os.system('pip install torch==2.3.0+cu121 torchvision==0.18.0+cu121 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121')
 
14
 
15
  # only then import the necessary modules from qa_mdt
16
  from qa_mdt.pipeline import MOSDiffusionPipeline
 
19
  pipe = MOSDiffusionPipeline()
20
 
21
  # this runs the pipeline with user input and saves the output as 'awesome.wav'
22
+ @spaces.GPU()
23
  def generate_waveform(description):
24
  pipe(description)
25