rohanmiriyala commited on
Commit
a660cd6
Β·
verified Β·
1 Parent(s): 5097f8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -32
app.py CHANGED
@@ -24,14 +24,12 @@ from lang_list import (
24
 
25
 
26
  DESCRIPTION = """\
27
- ### **IndicSeamless: Speech-to-Text Translation Model for Indian Languages** πŸŽ™οΈβž‘οΈπŸ“œ
28
- This Gradio demo showcases **IndicSeamless**, a fine-tuned **SeamlessM4T-v2-large** model for **speech-to-text translation** across **13 Indian languages and English**. Trained on **BhasaAnuvaad**, the largest open-source speech translation dataset for Indian languages, it delivers **accurate and robust translations** across diverse linguistic and acoustic conditions.
29
- πŸ”— **Model Checkpoint:** [ai4bharat/indic-seamless](https://huggingface.co/ai4bharat/indic-seamless)
30
  #### **How to Use:**
31
  1. **Upload or record** an audio clip in any supported Indian language.
32
  2. Click **"Translate"** to generate the corresponding text in the target language.
33
  3. View or copy the output for further use.
34
- πŸš€ Try it out and experience seamless speech translation for Indian languages!
35
  """
36
 
37
  hf_token = os.getenv("HF_TOKEN")
@@ -129,20 +127,6 @@ with gr.Blocks() as demo_s2tt:
129
  with gr.Column():
130
  output_text = gr.Textbox(label="Translated text")
131
 
132
- gr.Examples(
133
- examples=[
134
- ["assets/Bengali.wav", "Bengali", "English"],
135
- ["assets/Gujarati.wav", "Gujarati", "Hindi"],
136
- ["assets/Punjabi.wav", "Punjabi", "Hindi"],
137
-
138
- ],
139
- inputs=[input_audio, source_language, target_language],
140
- outputs=output_text,
141
- fn=run_s2tt,
142
- cache_examples=CACHE_EXAMPLES,
143
- api_name=False,
144
- )
145
-
146
  btn.click(
147
  fn=run_s2tt,
148
  inputs=[input_audio, source_language, target_language],
@@ -193,20 +177,6 @@ with gr.Blocks() as demo_asr:
193
  with gr.Column():
194
  output_text = gr.Textbox(label="Transcribed text")
195
 
196
- gr.Examples(
197
- examples=[
198
- ["assets/Bengali.wav", "Bengali", "English"],
199
- ["assets/Gujarati.wav", "Gujarati", "Hindi"],
200
- ["assets/Punjabi.wav", "Punjabi", "Hindi"],
201
-
202
- ],
203
- inputs=[input_audio, target_language],
204
- outputs=output_text,
205
- fn=run_asr,
206
- cache_examples=CACHE_EXAMPLES,
207
- api_name=False,
208
- )
209
-
210
  btn.click(
211
  fn=run_asr,
212
  inputs=[input_audio, target_language],
 
24
 
25
 
26
  DESCRIPTION = """\
27
+ ### Translation Model for Indian Languages** πŸŽ™οΈβž‘οΈπŸ“œ
 
 
28
  #### **How to Use:**
29
  1. **Upload or record** an audio clip in any supported Indian language.
30
  2. Click **"Translate"** to generate the corresponding text in the target language.
31
  3. View or copy the output for further use.
32
+ πŸš€ Try it out and experience seamless speech to speech translation for Indian languages!
33
  """
34
 
35
  hf_token = os.getenv("HF_TOKEN")
 
127
  with gr.Column():
128
  output_text = gr.Textbox(label="Translated text")
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  btn.click(
131
  fn=run_s2tt,
132
  inputs=[input_audio, source_language, target_language],
 
177
  with gr.Column():
178
  output_text = gr.Textbox(label="Transcribed text")
179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  btn.click(
181
  fn=run_asr,
182
  inputs=[input_audio, target_language],