DrishtiSharma
commited on
Commit
•
a50abbe
1
Parent(s):
a9e9adc
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def predict_and_ctc_lm_decode(input_file):
|
|
31 |
input_ids = tokenizer('translate Spanish to Nahuatl: ' + transcribed_text, return_tensors='pt').input_ids
|
32 |
outputs = model.generate(input_ids, max_length=512)
|
33 |
outputs = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
|
34 |
-
return f"Spanish Audio Transcription: {transcribed_text}
|
35 |
|
36 |
|
37 |
gr.Interface(
|
|
|
31 |
input_ids = tokenizer('translate Spanish to Nahuatl: ' + transcribed_text, return_tensors='pt').input_ids
|
32 |
outputs = model.generate(input_ids, max_length=512)
|
33 |
outputs = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
|
34 |
+
return f"Spanish Audio Transcription: {transcribed_text} {new_line} Nahuatl Translation :{outputs}"
|
35 |
|
36 |
|
37 |
gr.Interface(
|