Spaces:
Runtime error
Runtime error
rensdimmendaal commited on
Commit ·
400fcfb
1
Parent(s): f386082
lower text..
Browse files24 unmodified lines2526272829303124 unmodified linespredicted_ids = torch.argmax(logits, dim=-1)transcription = processor.batch_decode(predicted_ids)return transcription[0] # batch size 1iface = gr.Interface(speech2text, "microphone", "text")24 unmodified lines2526272829303124 unmodified linespredicted_ids = torch.argmax(logits, dim=-1)transcription = processor.batch_decode(predicted_ids)return transcription[0].lower() # batch size 1iface = gr.Interface(speech2text, "microphone", "text")
app.py+1-1