Spaces:
Runtime error
Runtime error
thecollabagepatch
commited on
Commit
•
0383a2d
1
Parent(s):
ec93a5a
Use custom build script to set up dependencies and copy font file
Browse files
README.md
CHANGED
@@ -5,6 +5,7 @@ colorFrom: red
|
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.23.0
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
|
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.23.0
|
8 |
+
build_script: build.sh
|
9 |
app_file: app.py
|
10 |
pinned: false
|
11 |
license: mit
|
build.sh
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Install system dependencies
|
4 |
+
apt-get update
|
5 |
+
apt-get install -y fluidsynth
|
6 |
+
|
7 |
+
# Copy the FluidR3_GM.sf2 file
|
8 |
+
cp /usr/share/sounds/sf2/FluidR3_GM.sf2 ./font.sf2
|
9 |
+
|
10 |
+
# Install Python dependencies
|
11 |
+
pip install -r requirements.txt
|
postBuild
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
|
3 |
-
cp /usr/share/sounds/sf2/FluidR3_GM.sf2 ./font.sf2
|
|
|
|
|
|
|
|