Update app.py
Browse files
app.py
CHANGED
@@ -158,11 +158,12 @@ with gr.Blocks() as demo:
|
|
158 |
gr.Markdown("Start typing below and then click **Run** to see the progress and final output.")
|
159 |
with gr.Column():
|
160 |
srt_file = gr.File()
|
|
|
161 |
subtitle_file = gr.File()
|
162 |
btn = gr.Button("Create")
|
163 |
btn.click(
|
164 |
fn=translate,
|
165 |
-
inputs=srt_file,
|
166 |
outputs=subtitle_file,
|
167 |
)
|
168 |
|
|
|
158 |
gr.Markdown("Start typing below and then click **Run** to see the progress and final output.")
|
159 |
with gr.Column():
|
160 |
srt_file = gr.File()
|
161 |
+
max_chars = gr.Number()
|
162 |
subtitle_file = gr.File()
|
163 |
btn = gr.Button("Create")
|
164 |
btn.click(
|
165 |
fn=translate,
|
166 |
+
inputs=[srt_file, max_chars]
|
167 |
outputs=subtitle_file,
|
168 |
)
|
169 |
|