Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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")
|
|
|
|
| 101 |
return output_video
|
| 102 |
|
| 103 |
# Initialisation de Gradio Blocks
|
| 104 |
+
with gr.Blocks() as blocks_app:
|
| 105 |
+
gr.Markdown(
|
| 106 |
+
"""
|
| 107 |
+
# Video Subtitle Creation API
|
| 108 |
+
For web use please visit [this space](https://huggingface.co/spaces/Lenylvt/VideoSubtitleCreation)
|
| 109 |
+
""")
|
| 110 |
with gr.Row():
|
| 111 |
video_file = gr.Video(label="Upload Video")
|
| 112 |
source_language_dropdown = gr.Dropdown(choices=language_options, label="Source Language", value="en")
|