Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,8 @@ def speech2text(audio):
|
|
| 26 |
transcription = processor.batch_decode(predicted_ids)
|
| 27 |
|
| 28 |
return transcription[0].lower() # batch size 1
|
| 29 |
-
|
| 30 |
-
iface = gr.Interface(speech2text, "
|
| 31 |
|
| 32 |
iface.launch()
|
| 33 |
|
|
|
|
| 26 |
transcription = processor.batch_decode(predicted_ids)
|
| 27 |
|
| 28 |
return transcription[0].lower() # batch size 1
|
| 29 |
+
#microphone
|
| 30 |
+
iface = gr.Interface(speech2text, "file", "text")
|
| 31 |
|
| 32 |
iface.launch()
|
| 33 |
|