Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def asr_transcript(input_file):
|
|
40 |
#Take argmax
|
41 |
predicted_ids = torch.argmax(logits, dim=-1)
|
42 |
#Get the words from predicted word ids
|
43 |
-
|
44 |
#Correcting the letter casing
|
45 |
#transcription = correct_casing(transcription.lower())
|
46 |
return transcription
|
|
|
40 |
#Take argmax
|
41 |
predicted_ids = torch.argmax(logits, dim=-1)
|
42 |
#Get the words from predicted word ids
|
43 |
+
transcription = processor.batch_decode(predicted_ids[0])
|
44 |
#Correcting the letter casing
|
45 |
#transcription = correct_casing(transcription.lower())
|
46 |
return transcription
|