Spaces:
Running
Running
Commit
Β·
26ec24d
1
Parent(s):
d474b63
Debugging
Browse files- app.py +1 -1
- postBuild +0 -1
- requirements.txt +3 -7
app.py
CHANGED
@@ -180,7 +180,7 @@ with gr.Blocks() as interface:
|
|
180 |
history_box = gr.Textbox(lines=10, label="Translation History", interactive=False)
|
181 |
|
182 |
with gr.Row():
|
183 |
-
audio_input = gr.Audio(
|
184 |
audio_output = gr.Audio(label="π English Output Audio")
|
185 |
stt_translate_button = gr.Button("π€ Transcribe & Translate")
|
186 |
|
|
|
180 |
history_box = gr.Textbox(lines=10, label="Translation History", interactive=False)
|
181 |
|
182 |
with gr.Row():
|
183 |
+
audio_input = gr.Audio(type="filepath", label="ποΈ Upload or record English audio")
|
184 |
audio_output = gr.Audio(label="π English Output Audio")
|
185 |
stt_translate_button = gr.Button("π€ Transcribe & Translate")
|
186 |
|
postBuild
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
pip install gradio==5.32.0
|
2 |
python -c "from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline; \
|
3 |
AutoModelForSeq2SeqLM.from_pretrained('ai4bharat/indictrans2-en-indic-1B'); \
|
4 |
AutoTokenizer.from_pretrained('ai4bharat/indictrans2-en-indic-1B'); \
|
|
|
|
|
1 |
python -c "from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline; \
|
2 |
AutoModelForSeq2SeqLM.from_pretrained('ai4bharat/indictrans2-en-indic-1B'); \
|
3 |
AutoTokenizer.from_pretrained('ai4bharat/indictrans2-en-indic-1B'); \
|
requirements.txt
CHANGED
@@ -1,11 +1,7 @@
|
|
1 |
-
transformers>=4.30.0
|
2 |
torch>=1.12
|
|
|
3 |
sentencepiece
|
4 |
gradio==5.32.0
|
5 |
-
gtts
|
6 |
-
pydub
|
7 |
-
ffmpeg-python
|
8 |
-
soundfile
|
9 |
-
accelerate
|
10 |
-
git+https://github.com/VarunGumma/IndicTransToolkit.git
|
11 |
requests
|
|
|
|
|
|
|
|
1 |
torch>=1.12
|
2 |
+
transformers>=4.30.0
|
3 |
sentencepiece
|
4 |
gradio==5.32.0
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
requests
|
6 |
+
git+https://github.com/VarunGumma/IndicTransToolkit.git
|
7 |
+
gTTS
|