Update app.py
Browse files
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']
|