Spaces:
Runtime error
Runtime error
Simon Stolarczyk
commited on
Commit
•
a9764fc
1
Parent(s):
776a79b
Try running that random shell script.
Browse files- .ipynb_checkpoints/app-checkpoint.py +3 -1
- app.py +3 -1
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -28,9 +28,11 @@ for path in paths:
|
|
28 |
print(os.listdir(path))
|
29 |
print('-'*10)
|
30 |
|
|
|
|
|
31 |
# subprocess.run(['PATH=$PATH:~/opt/bin'])
|
32 |
# subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
|
33 |
-
|
34 |
|
35 |
def process_midi(midi_file):
|
36 |
name = Path(midi_file.name)
|
|
|
28 |
print(os.listdir(path))
|
29 |
print('-'*10)
|
30 |
|
31 |
+
subprocess.run(['/home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
|
32 |
+
|
33 |
# subprocess.run(['PATH=$PATH:~/opt/bin'])
|
34 |
# subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
|
35 |
+
subprocess.run(['fluidsynth'], shell=True)
|
36 |
|
37 |
def process_midi(midi_file):
|
38 |
name = Path(midi_file.name)
|
app.py
CHANGED
@@ -28,9 +28,11 @@ for path in paths:
|
|
28 |
print(os.listdir(path))
|
29 |
print('-'*10)
|
30 |
|
|
|
|
|
31 |
# subprocess.run(['PATH=$PATH:~/opt/bin'])
|
32 |
# subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
|
33 |
-
|
34 |
|
35 |
def process_midi(midi_file):
|
36 |
name = Path(midi_file.name)
|
|
|
28 |
print(os.listdir(path))
|
29 |
print('-'*10)
|
30 |
|
31 |
+
subprocess.run(['/home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
|
32 |
+
|
33 |
# subprocess.run(['PATH=$PATH:~/opt/bin'])
|
34 |
# subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
|
35 |
+
subprocess.run(['fluidsynth'], shell=True)
|
36 |
|
37 |
def process_midi(midi_file):
|
38 |
name = Path(midi_file.name)
|