Spaces:
Paused
Paused
update ghananlp logo
Browse files
app.py
CHANGED
@@ -84,9 +84,11 @@ with gr.Blocks(
|
|
84 |
):
|
85 |
gr.HTML(
|
86 |
"""
|
87 |
-
<
|
88 |
-
|
89 |
-
|
|
|
|
|
90 |
|
91 |
""",
|
92 |
)
|
@@ -95,7 +97,7 @@ with gr.Blocks(
|
|
95 |
min_width=0,
|
96 |
):
|
97 |
gr.Image(
|
98 |
-
"
|
99 |
show_label=False,
|
100 |
height=200,
|
101 |
show_download_button=False,
|
@@ -110,7 +112,7 @@ with gr.Blocks(
|
|
110 |
# main interface components
|
111 |
with gr.Row():
|
112 |
with gr.Column():
|
113 |
-
input_video = gr.Video(label="Input Video", sources=["upload"]
|
114 |
input_speaker = gr.Radio(
|
115 |
label="Select Speaker",
|
116 |
choices=["male", "female"],
|
@@ -120,7 +122,7 @@ with gr.Blocks(
|
|
120 |
show_label=True,
|
121 |
)
|
122 |
submit = gr.Button("Process Video", scale=1)
|
123 |
-
output_video = gr.Video(label="Processed Video"
|
124 |
submit.click(
|
125 |
process_video_translation,
|
126 |
inputs=[input_video, input_speaker],
|
|
|
84 |
):
|
85 |
gr.HTML(
|
86 |
"""
|
87 |
+
<div style="display: flex; align-items: center; justify-content: center;">
|
88 |
+
<h1 style="font-size: 2em; font-weight: bold; margin-top: 1em;">
|
89 |
+
Video Dubbing Interface
|
90 |
+
</h1>
|
91 |
+
</div>
|
92 |
|
93 |
""",
|
94 |
)
|
|
|
97 |
min_width=0,
|
98 |
):
|
99 |
gr.Image(
|
100 |
+
"NLPGhana_logo_1.png",
|
101 |
show_label=False,
|
102 |
height=200,
|
103 |
show_download_button=False,
|
|
|
112 |
# main interface components
|
113 |
with gr.Row():
|
114 |
with gr.Column():
|
115 |
+
input_video = gr.Video(label="Input Video", sources=["upload"])
|
116 |
input_speaker = gr.Radio(
|
117 |
label="Select Speaker",
|
118 |
choices=["male", "female"],
|
|
|
122 |
show_label=True,
|
123 |
)
|
124 |
submit = gr.Button("Process Video", scale=1)
|
125 |
+
output_video = gr.Video(label="Processed Video")
|
126 |
submit.click(
|
127 |
process_video_translation,
|
128 |
inputs=[input_video, input_speaker],
|