Spaces:
Bagda
/
Build error

Bagda commited on
Commit
ae82ef0
·
verified ·
1 Parent(s): 303bd7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -271,4 +271,8 @@ gr.Interface(
271
  ],
272
  title="🎙️ English to Hindi Video Dubbing AI",
273
  description="Upload English audio, get Hindi translation and dubbed voice."
274
- ).launch()
 
 
 
 
 
271
  ],
272
  title="🎙️ English to Hindi Video Dubbing AI",
273
  description="Upload English audio, get Hindi translation and dubbed voice."
274
+ ).launch()
275
+ from transformers import pipeline
276
+
277
+ translator = pipeline("translation", model="Helsinki-NLP/opus-mt-en-hi")
278
+ translated_text = translator("Hello, how are you?")[0]['translation_text']