Spaces:
Runtime error
Runtime error
Commit
•
1eb857f
1
Parent(s):
fb999ba
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,11 @@ def transcribe(audio):
|
|
21 |
options = whisper.DecodingOptions(fp16 = False)
|
22 |
result = whisper.decode(model, mel, options)
|
23 |
return result.text
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
27 |
fn=transcribe,
|
28 |
inputs=[
|
29 |
gr.inputs.Audio(source="microphone", type="filepath")
|
|
|
21 |
options = whisper.DecodingOptions(fp16 = False)
|
22 |
result = whisper.decode(model, mel, options)
|
23 |
return result.text
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
gr.Interface(
|
28 |
+
title = 'SPEECH TO TEXT',
|
29 |
fn=transcribe,
|
30 |
inputs=[
|
31 |
gr.inputs.Audio(source="microphone", type="filepath")
|