DrishtiSharma commited on
Commit
3b36209
·
1 Parent(s): 2f6b008

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -35,6 +35,12 @@ def predict_and_ctc_lm_decode(input_file):
35
  output = tokenizer.decode(output[0], skip_special_tokens=True)
36
  return f"Spanish Audio Transcription: {transcribed_text} {new_line} Quechua Translation: {output}"
37
 
 
 
 
 
 
 
38
 
39
  gr.Interface(
40
  predict_and_ctc_lm_decode,
@@ -44,7 +50,7 @@ gr.Interface(
44
  outputs=[gr.outputs.Textbox()],
45
  examples=[["sunny_day.wav"], ["travel.wav"]],
46
  title="Spanish-Audio-Transcriptions-to-Quechua-Translation",
47
- description = "This is a Gradio demo of Spanish Audio Transcriptions to Quechua Translation. To use this, simply provide an audio input (audio recording or via microphone), which will subsequently be transcribed and translated to Quechua language.",
48
  #article="<p><center><img src='........e'></center></p>",
49
  layout="horizontal",
50
  theme="huggingface",
 
35
  output = tokenizer.decode(output[0], skip_special_tokens=True)
36
  return f"Spanish Audio Transcription: {transcribed_text} {new_line} Quechua Translation: {output}"
37
 
38
+ description = """ This is a Gradio demo of Spanish Audio Transcriptions to Quechua Translation. To use this, simply provide an audio input (audio recording or via microphone), which will subsequently be transcribed and translated to the Quechua language.
39
+
40
+ Pre-trained model used for Spanish ASR: [jonatasgrosman/wav2vec2-large-xlsr-53-spanish](https://huggingface.co/jonatasgrosman/wav2vec2-large-xlsr-53-spanish)
41
+ Pre-trained model used for translating Spanish audio transcription to the Quechua language: [t5-small-finetuned-spanish-to-quechua](https://huggingface.co/hackathon-pln-es/t5-small-finetuned-spanish-to-quechua)
42
+
43
+ """
44
 
45
  gr.Interface(
46
  predict_and_ctc_lm_decode,
 
50
  outputs=[gr.outputs.Textbox()],
51
  examples=[["sunny_day.wav"], ["travel.wav"]],
52
  title="Spanish-Audio-Transcriptions-to-Quechua-Translation",
53
+ description = description,
54
  #article="<p><center><img src='........e'></center></p>",
55
  layout="horizontal",
56
  theme="huggingface",