Spaces:
Running
on
Zero
Running
on
Zero
keshavbhandari
commited on
Commit
•
2f25933
1
Parent(s):
770f94f
test
Browse files
app.py
CHANGED
@@ -3,6 +3,16 @@ import spaces
|
|
3 |
import librosa
|
4 |
import soundfile as sf
|
5 |
import wavio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
import fluidsynth
|
7 |
|
8 |
# @spaces.GPU(duration=120)
|
|
|
3 |
import librosa
|
4 |
import soundfile as sf
|
5 |
import wavio
|
6 |
+
|
7 |
+
import subprocess
|
8 |
+
|
9 |
+
# Run the apt-get command
|
10 |
+
try:
|
11 |
+
subprocess.run(["apt-get", "install", "-y", "fluidsynth"], check=True)
|
12 |
+
print("FluidSynth installed successfully")
|
13 |
+
except subprocess.CalledProcessError as e:
|
14 |
+
print(f"An error occurred while installing FluidSynth: {e}")
|
15 |
+
|
16 |
import fluidsynth
|
17 |
|
18 |
# @spaces.GPU(duration=120)
|
setup.txt
CHANGED
@@ -4,13 +4,4 @@ install_requires = []
|
|
4 |
if os.path.isfile(requirement_path):
|
5 |
with open(requirement_path) as f:
|
6 |
install_requires = f.read().splitlines()
|
7 |
-
setup(name="mypackage", install_requires=install_requires, [...])
|
8 |
-
|
9 |
-
import subprocess
|
10 |
-
|
11 |
-
# Run the apt-get command
|
12 |
-
try:
|
13 |
-
subprocess.run(["apt-get", "install", "-y", "fluidsynth"], check=True)
|
14 |
-
print("FluidSynth installed successfully")
|
15 |
-
except subprocess.CalledProcessError as e:
|
16 |
-
print(f"An error occurred while installing FluidSynth: {e}")
|
|
|
4 |
if os.path.isfile(requirement_path):
|
5 |
with open(requirement_path) as f:
|
6 |
install_requires = f.read().splitlines()
|
7 |
+
setup(name="mypackage", install_requires=install_requires, [...])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|