Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,10 +11,10 @@ def transcribe(audio):
|
|
11 |
def generateText(audio):
|
12 |
text = pipe1(audio)["text"]
|
13 |
generated_text = pipe2(text, max_length = 30, num_return_sequences=1)[0]['generated_text']
|
14 |
-
return generated_text
|
15 |
|
16 |
iface = gr.Interface(
|
17 |
-
fn=
|
18 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
19 |
outputs=["text","generated_text"],
|
20 |
title="Whisper Small Swedish",
|
|
|
11 |
def generateText(audio):
|
12 |
text = pipe1(audio)["text"]
|
13 |
generated_text = pipe2(text, max_length = 30, num_return_sequences=1)[0]['generated_text']
|
14 |
+
return text, generated_text
|
15 |
|
16 |
iface = gr.Interface(
|
17 |
+
fn=generateText,
|
18 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
19 |
outputs=["text","generated_text"],
|
20 |
title="Whisper Small Swedish",
|