Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
import subprocess
|
2 |
import sys
|
3 |
|
|
|
|
|
|
|
4 |
subprocess.check_call([sys.executable,"-m","pip","install", 'torch'])
|
5 |
# subprocess.check_call([sys.executable,"-m","pip","install",'causal-conv1d'])
|
6 |
subprocess.check_call([sys.executable, "-m", "pip", "install", 'numpy', 'miditok','transformers','gradio'])
|
7 |
-
subprocess.check_call(["apt-get", "install", "timidity", "-y"])
|
8 |
|
9 |
# !pip install pretty_midi midi2audio
|
10 |
# !pip install miditok
|
|
|
1 |
import subprocess
|
2 |
import sys
|
3 |
|
4 |
+
#update the system
|
5 |
+
subprocess.check_call(["apt-get", "update"])
|
6 |
+
subprocess.check_call(["apt-get", "install", "timidity", "-y"])
|
7 |
subprocess.check_call([sys.executable,"-m","pip","install", 'torch'])
|
8 |
# subprocess.check_call([sys.executable,"-m","pip","install",'causal-conv1d'])
|
9 |
subprocess.check_call([sys.executable, "-m", "pip", "install", 'numpy', 'miditok','transformers','gradio'])
|
|
|
10 |
|
11 |
# !pip install pretty_midi midi2audio
|
12 |
# !pip install miditok
|