DrishtiSharma
commited on
Commit
•
180aa71
1
Parent(s):
a50abbe
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,12 @@ def predict_and_ctc_lm_decode(input_file):
|
|
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(
|
38 |
predict_and_ctc_lm_decode,
|
|
|
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 |
+
description = """ This is a Gradio demo of Spanish Audio Transcriptions to Nahuatl Translation. To use this, simply provide an audio input (audio recording or via microphone), which will subsequently be transcribed and translated to the Nahuatl language.
|
37 |
+
|
38 |
+
Pre-trained model used for Spanish ASR: [jonatasgrosman/wav2vec2-large-xlsr-53-spanish](https://huggingface.co/jonatasgrosman/wav2vec2-large-xlsr-53-spanish)
|
39 |
+
|
40 |
+
Pre-trained model used for translating Spanish audio transcription to the Nahuatl language: [hackathon-pln-es/t5-small-spanish-nahuatl](https://huggingface.co/hackathon-pln-es/t5-small-spanish-nahuatl)
|
41 |
+
"""
|
42 |
|
43 |
gr.Interface(
|
44 |
predict_and_ctc_lm_decode,
|