keshavbhandari
commited on
Commit
•
ca071e5
1
Parent(s):
9da06d3
adding soundfont download to app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,14 @@ import wavio
|
|
6 |
import os
|
7 |
import subprocess
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
def save_wav(filepath):
|
11 |
# Extract the directory and the stem (filename without extension)
|
|
|
6 |
import os
|
7 |
import subprocess
|
8 |
|
9 |
+
import subprocess
|
10 |
+
|
11 |
+
# Command to download the soundfont file
|
12 |
+
command = "wget -O soundfont.sf https://www.dropbox.com/scl/fi/t8gou8stesm42sc559nzu/DoreMarkYamahaS6-v1.6.sf2?rlkey=28ecl63kkjjmwxrkd6hnzsq8f&dl=0"
|
13 |
+
|
14 |
+
# Run the command
|
15 |
+
subprocess.run(command, shell=True, check=True)
|
16 |
+
|
17 |
|
18 |
def save_wav(filepath):
|
19 |
# Extract the directory and the stem (filename without extension)
|