Spaces:
Build error
Build error
hugo flores garcia
commited on
Commit
·
1e8c3b8
1
Parent(s):
878b171
fix default model
Browse files- .gitignore +3 -1
- app.py +2 -3
- update-repos.sh +11 -0
.gitignore
CHANGED
@@ -191,4 +191,6 @@ data
|
|
191 |
pyharp
|
192 |
|
193 |
models/vampnet/*
|
194 |
-
models/*
|
|
|
|
|
|
191 |
pyharp
|
192 |
|
193 |
models/vampnet/*
|
194 |
+
models/*
|
195 |
+
|
196 |
+
lib/
|
app.py
CHANGED
@@ -166,7 +166,6 @@ def api_vamp(data):
|
|
166 |
api=True,
|
167 |
)
|
168 |
|
169 |
-
|
170 |
OUT_DIR = Path("gradio-outputs")
|
171 |
OUT_DIR.mkdir(exist_ok=True)
|
172 |
def harp_vamp(input_audio_file, periodic_p, n_mask_codebooks, pitch_shift_amt):
|
@@ -177,7 +176,7 @@ def harp_vamp(input_audio_file, periodic_p, n_mask_codebooks, pitch_shift_amt):
|
|
177 |
sr, samples = _vamp(
|
178 |
seed=0,
|
179 |
input_audio=(sr, samples),
|
180 |
-
model_choice=
|
181 |
pitch_shift_amt=pitch_shift_amt,
|
182 |
periodic_p=periodic_p,
|
183 |
n_mask_codebooks=n_mask_codebooks,
|
@@ -186,7 +185,7 @@ def harp_vamp(input_audio_file, periodic_p, n_mask_codebooks, pitch_shift_amt):
|
|
186 |
dropout=0.0,
|
187 |
sampletemp=1.0,
|
188 |
typical_filtering=True,
|
189 |
-
typical_mass=0.15,
|
190 |
typical_min_tokens=64,
|
191 |
top_p=0.0,
|
192 |
sample_cutoff=1.0,
|
|
|
166 |
api=True,
|
167 |
)
|
168 |
|
|
|
169 |
OUT_DIR = Path("gradio-outputs")
|
170 |
OUT_DIR.mkdir(exist_ok=True)
|
171 |
def harp_vamp(input_audio_file, periodic_p, n_mask_codebooks, pitch_shift_amt):
|
|
|
176 |
sr, samples = _vamp(
|
177 |
seed=0,
|
178 |
input_audio=(sr, samples),
|
179 |
+
model_choice=init_model_choice,
|
180 |
pitch_shift_amt=pitch_shift_amt,
|
181 |
periodic_p=periodic_p,
|
182 |
n_mask_codebooks=n_mask_codebooks,
|
|
|
185 |
dropout=0.0,
|
186 |
sampletemp=1.0,
|
187 |
typical_filtering=True,
|
188 |
+
typical_mass=0.15,
|
189 |
typical_min_tokens=64,
|
190 |
top_p=0.0,
|
191 |
sample_cutoff=1.0,
|
update-repos.sh
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#
|
2 |
+
repos=( "vampnet-music" "vampnet-percussion" "vampnet-n64" "vampnet-birds" "vampnet-choir" "vampnet-machines" "nesquik" "vampnet-opera")
|
3 |
+
for repo in "${repos[@]}"
|
4 |
+
do
|
5 |
+
echo "Updating $repo"
|
6 |
+
git remote add --fetch $repo https://huggingface.co/spaces/hugggof/$repo
|
7 |
+
git push --force $repo main
|
8 |
+
done
|
9 |
+
|
10 |
+
# https://huggingface.co/spaces/hugggof/vampnet-music
|
11 |
+
# git push --space-percussion main
|