Spaces:
Running
Running
rensdimmendaal
commited on
Commit
·
400fcfb
1
Parent(s):
f386082
lower text..
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def speech2text(audio):
|
|
25 |
predicted_ids = torch.argmax(logits, dim=-1)
|
26 |
transcription = processor.batch_decode(predicted_ids)
|
27 |
|
28 |
-
return transcription[0] # batch size 1
|
29 |
|
30 |
iface = gr.Interface(speech2text, "microphone", "text")
|
31 |
|
|
|
25 |
predicted_ids = torch.argmax(logits, dim=-1)
|
26 |
transcription = processor.batch_decode(predicted_ids)
|
27 |
|
28 |
+
return transcription[0].lower() # batch size 1
|
29 |
|
30 |
iface = gr.Interface(speech2text, "microphone", "text")
|
31 |
|