mdnestor commited on
Commit
451c182
1 Parent(s): 3116b58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -2,26 +2,17 @@ import os
2
  import gradio as gr
3
  import glob
4
 
5
- os.system("apt-get update -qq && apt-get install -qq libfluidsynth1 build-essential libasound2-dev libjack-dev")
6
-
7
- # install t5x
8
- os.system("git clone --branch=main https://github.com/google-research/t5x")
9
- # pin T5X for python 3.7 compatibility
10
- os.system("cd t5x; git reset --hard 2e05ad41778c25521738418de805757bf2e41e9e; cd ..")
11
- os.system("mv t5x t5x_tmp; mv t5x_tmp/* .; rm -r t5x_tmp")
12
- os.system("sed -i 's:jax\[tpu\]:jax:' setup.py")
13
- os.system("python3 -m pip install -e .")
14
 
15
  # install mt3
16
  os.system("git clone --branch=main https://github.com/magenta/mt3")
17
  os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
18
- os.system("python3 -m pip install -e .")
19
-
20
- os.system("pip install jax[cuda]==0.3.15 -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html")
21
 
22
  os.system("gsutil -q -m cp -r gs://mt3/checkpoints .")
23
  os.system("gsutil -q -m cp gs://magentadata/soundfonts/SGM-v2.01-Sal-Guit-Bass-V1.3.sf2 .")
24
 
 
25
  import functools
26
  import os
27
 
 
2
  import gradio as gr
3
  import glob
4
 
5
+ os.system("apt-get update -qq && apt-get install -qq libfluidsynth2 build-essential libasound2-dev libjack-dev")
 
 
 
 
 
 
 
 
6
 
7
  # install mt3
8
  os.system("git clone --branch=main https://github.com/magenta/mt3")
9
  os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
10
+ os.system("python3 -m pip install nest-asyncio pyfluidsynth==1.3.0 -e .")
 
 
11
 
12
  os.system("gsutil -q -m cp -r gs://mt3/checkpoints .")
13
  os.system("gsutil -q -m cp gs://magentadata/soundfonts/SGM-v2.01-Sal-Guit-Bass-V1.3.sf2 .")
14
 
15
+
16
  import functools
17
  import os
18