Update app.py
Browse files
app.py
CHANGED
|
@@ -20,8 +20,7 @@ def inference(audio):
|
|
| 20 |
options = whisper.DecodingOptions(fp16 = False)
|
| 21 |
result = whisper.decode(model, mel, options)
|
| 22 |
|
| 23 |
-
|
| 24 |
-
return result.text, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
| 25 |
|
| 26 |
iface = gr.Interface(
|
| 27 |
fn=inference,
|
|
|
|
| 20 |
options = whisper.DecodingOptions(fp16 = False)
|
| 21 |
result = whisper.decode(model, mel, options)
|
| 22 |
|
| 23 |
+
return result.text
|
|
|
|
| 24 |
|
| 25 |
iface = gr.Interface(
|
| 26 |
fn=inference,
|