Spaces:
Runtime error
Runtime error
jonathanjordan21
commited on
Commit
•
df0fca1
1
Parent(s):
f28083c
Update app.py
Browse files
app.py
CHANGED
@@ -225,7 +225,7 @@ def transcribe(audio, spk):
|
|
225 |
y /= np.max(np.abs(y))
|
226 |
|
227 |
spk_emb = np.zeros((82,))
|
228 |
-
spk_emb[spk-1] = 1
|
229 |
|
230 |
mel_sp, mel_cep = create_mel(y)
|
231 |
sp = create_sp(mel_cep, spk_emb)
|
@@ -239,7 +239,7 @@ demo = gr.Interface(
|
|
239 |
transcribe,
|
240 |
[
|
241 |
gr.Audio(),
|
242 |
-
gr.Slider(1, 82, value=21, label="Count", info="Choose between 1 and 82")
|
243 |
],
|
244 |
"audio",
|
245 |
)
|
|
|
225 |
y /= np.max(np.abs(y))
|
226 |
|
227 |
spk_emb = np.zeros((82,))
|
228 |
+
spk_emb[int(spk)-1] = 1
|
229 |
|
230 |
mel_sp, mel_cep = create_mel(y)
|
231 |
sp = create_sp(mel_cep, spk_emb)
|
|
|
239 |
transcribe,
|
240 |
[
|
241 |
gr.Audio(),
|
242 |
+
gr.Slider(1, 82, value=21, label="Count", step=1, info="Choose between 1 and 82")
|
243 |
],
|
244 |
"audio",
|
245 |
)
|