krystv commited on
Commit
0089eca
·
verified ·
1 Parent(s): 9a75c40

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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