Spaces:
Runtime error
Runtime error
Commit
Β·
b36837b
1
Parent(s):
4e909b7
Update app.py
Browse files
app.py
CHANGED
@@ -9,15 +9,6 @@ read_token = str(os.environ['read_token'])
|
|
9 |
description = "Talk to Breud!"
|
10 |
title = "Breud (BERT + Freud)"
|
11 |
|
12 |
-
def reverse_audio(audio):
|
13 |
-
sr, data = audio
|
14 |
-
reversed_audio = (sr, np.flipud(data))
|
15 |
-
return reversed_audio
|
16 |
-
|
17 |
-
|
18 |
-
mic = gr.Audio(source="microphone", type="numpy", label="Speak here...")
|
19 |
-
audio_int = gr.Interface(reverse_audio, mic, "audio")
|
20 |
-
|
21 |
wisper = gr.Interface.load("models/openai/whisper-base")
|
22 |
|
23 |
interface_model_L = gr.Interface.load(
|
@@ -31,4 +22,5 @@ Series(
|
|
31 |
interface_model_L,
|
32 |
description = description,
|
33 |
title = title,
|
|
|
34 |
).launch()
|
|
|
9 |
description = "Talk to Breud!"
|
10 |
title = "Breud (BERT + Freud)"
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
wisper = gr.Interface.load("models/openai/whisper-base")
|
13 |
|
14 |
interface_model_L = gr.Interface.load(
|
|
|
22 |
interface_model_L,
|
23 |
description = description,
|
24 |
title = title,
|
25 |
+
input =gr.Audio(source="microphone", type="numpy", label="Speak here..."),
|
26 |
).launch()
|