khalidey commited on
Commit
b23d0f5
1 Parent(s): cafc266

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=transcribe,
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",