Spaces:
Sleeping
Sleeping
Commit
•
3a282c5
1
Parent(s):
d119b8b
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ from translate import Translate # Import the Translate class
|
|
2 |
import gradio as gr
|
3 |
|
4 |
def app(video_path, original_language, target_language, speaking_rate):
|
5 |
-
|
6 |
-
video =
|
7 |
# Return video in the output
|
8 |
return gr.Video(video)
|
9 |
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
def app(video_path, original_language, target_language, speaking_rate):
|
5 |
+
translate = Translate(video_path, target_language, original_language, speaking_rate)
|
6 |
+
video = translate.transcribe_and_translate()
|
7 |
# Return video in the output
|
8 |
return gr.Video(video)
|
9 |
|