Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,13 +67,12 @@ with gr.Blocks() as demo:
|
|
| 67 |
with gr.Column():
|
| 68 |
progress_output = gr.Textbox(label="Progress", visible=False)
|
| 69 |
video_file_input = gr.Text(label="Video URL")
|
| 70 |
-
clip_type = gr.Dropdown(["dub", "sub"], label="Clip Type")
|
| 71 |
parameters = gr.Text(label="Additional Parameters (for subtitles: color,font)")
|
| 72 |
btn = gr.Button("Create")
|
| 73 |
video_file_output = gr.Video(label="Result Video")
|
| 74 |
btn.click(
|
| 75 |
fn=main,
|
| 76 |
-
inputs=[video_file_input,
|
| 77 |
outputs=[progress_output, video_file_output],
|
| 78 |
concurrency_limit=4,
|
| 79 |
)
|
|
|
|
| 67 |
with gr.Column():
|
| 68 |
progress_output = gr.Textbox(label="Progress", visible=False)
|
| 69 |
video_file_input = gr.Text(label="Video URL")
|
|
|
|
| 70 |
parameters = gr.Text(label="Additional Parameters (for subtitles: color,font)")
|
| 71 |
btn = gr.Button("Create")
|
| 72 |
video_file_output = gr.Video(label="Result Video")
|
| 73 |
btn.click(
|
| 74 |
fn=main,
|
| 75 |
+
inputs=[video_file_input, parameters],
|
| 76 |
outputs=[progress_output, video_file_output],
|
| 77 |
concurrency_limit=4,
|
| 78 |
)
|