Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -101,12 +101,12 @@ def add_subtitle_to_video(input_video, subtitle_file, subtitle_language, soft_su
|
|
101 |
return output_video
|
102 |
|
103 |
# Initialisation de Gradio Blocks
|
104 |
-
with gr.Blocks() as blocks_app:
|
105 |
with gr.Row():
|
106 |
video_file = gr.Video(label="Upload Video")
|
107 |
source_language_dropdown = gr.Dropdown(choices=language_options, label="Source Language", value="en")
|
108 |
-
target_language_dropdown = gr.Dropdown(choices=language_options, label="Target Language", value="
|
109 |
-
model_size_dropdown = gr.Dropdown(choices=model_size_options, label="Model Size", value="large
|
110 |
transcribe_button = gr.Button("Transcribe Video")
|
111 |
translate_button = gr.Button("Translate Subtitles")
|
112 |
|
|
|
101 |
return output_video
|
102 |
|
103 |
# Initialisation de Gradio Blocks
|
104 |
+
with gr.Blocks(title="Video Subtitle Creation API", description="For web use please visit [this space](https://huggingface.co/spaces/Lenylvt/VideoSubtitleCreation)") as blocks_app:
|
105 |
with gr.Row():
|
106 |
video_file = gr.Video(label="Upload Video")
|
107 |
source_language_dropdown = gr.Dropdown(choices=language_options, label="Source Language", value="en")
|
108 |
+
target_language_dropdown = gr.Dropdown(choices=language_options, label="Target Language", value="en")
|
109 |
+
model_size_dropdown = gr.Dropdown(choices=model_size_options, label="Model Size", value="large") # Model size dropdown
|
110 |
transcribe_button = gr.Button("Transcribe Video")
|
111 |
translate_button = gr.Button("Translate Subtitles")
|
112 |
|