keshavbhandari commited on
Commit
0beeb37
1 Parent(s): 3173165

testing mid file now

Browse files
Files changed (3) hide show
  1. .gitattributes +3 -0
  2. Dockerfile +0 -3
  3. app.py +0 -8
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.sf2 filter=lfs diff=lfs merge=lfs -text
37
+ *.sf filter=lfs diff=lfs merge=lfs -text
38
+ soundfont.sf filter=lfs diff=lfs merge=lfs -text
Dockerfile CHANGED
@@ -4,9 +4,6 @@ FROM continuumio/anaconda3:main
4
  # Install fluidsynth
5
  RUN apt-get update && apt-get install -y fluidsynth
6
 
7
- # Download the soundfont file
8
- RUN wget -O /app/soundfont.sf https://www.dropbox.com/scl/fi/t8gou8stesm42sc559nzu/DoreMarkYamahaS6-v1.6.sf2?rlkey=28ecl63kkjjmwxrkd6hnzsq8f&dl=0
9
-
10
  # Copy the current directory contents into the container
11
  COPY . /app
12
 
 
4
  # Install fluidsynth
5
  RUN apt-get update && apt-get install -y fluidsynth
6
 
 
 
 
7
  # Copy the current directory contents into the container
8
  COPY . /app
9
 
app.py CHANGED
@@ -6,14 +6,6 @@ import wavio
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)
 
6
  import os
7
  import subprocess
8
 
 
 
 
 
 
 
 
 
9
 
10
  def save_wav(filepath):
11
  # Extract the directory and the stem (filename without extension)