Spaces:
Build error
Build error
HashScripts
commited on
Commit
•
44b2509
1
Parent(s):
381f08e
Update gui/ui_tab_video_translation.py
Browse files
gui/ui_tab_video_translation.py
CHANGED
@@ -32,7 +32,7 @@ class VideoTranslationUI(AbstractComponentUI):
|
|
32 |
with gr.Row(visible=False) as video_translation_ui:
|
33 |
with gr.Column():
|
34 |
videoType = gr.Radio(["Youtube link", "Video file"], label="Input your video", value="Youtube link", interactive=True)
|
35 |
-
video_path = gr.Video(
|
36 |
yt_link = gr.Textbox(label="Youtube link (https://youtube.com/xyz): ", interactive=True, visible=False)
|
37 |
videoType.change(lambda x: (gr.update(visible=x == "Video file"), gr.update(visible=x == "Youtube link")), [videoType], [video_path, yt_link])
|
38 |
tts_engine = gr.Radio([AssetComponentsUtils.ELEVEN_TTS, AssetComponentsUtils.EDGE_TTS, AssetComponentsUtils.COQUI_TTS], label="Text to speech engine", value=AssetComponentsUtils.ELEVEN_TTS, interactive=True)
|
|
|
32 |
with gr.Row(visible=False) as video_translation_ui:
|
33 |
with gr.Column():
|
34 |
videoType = gr.Radio(["Youtube link", "Video file"], label="Input your video", value="Youtube link", interactive=True)
|
35 |
+
video_path = gr.Video(interactive=True, width=533.33, height=300, visible=False)
|
36 |
yt_link = gr.Textbox(label="Youtube link (https://youtube.com/xyz): ", interactive=True, visible=False)
|
37 |
videoType.change(lambda x: (gr.update(visible=x == "Video file"), gr.update(visible=x == "Youtube link")), [videoType], [video_path, yt_link])
|
38 |
tts_engine = gr.Radio([AssetComponentsUtils.ELEVEN_TTS, AssetComponentsUtils.EDGE_TTS, AssetComponentsUtils.COQUI_TTS], label="Text to speech engine", value=AssetComponentsUtils.ELEVEN_TTS, interactive=True)
|