Update app.py
Browse files
app.py
CHANGED
@@ -254,11 +254,7 @@ def build_interface():
|
|
254 |
language_input = gr.Dropdown(["en", "es", "fr", "zh"], label="Select Language") # Language codes
|
255 |
submit_button = gr.Button("Post and Process")
|
256 |
editable_translations = gr.JSON(visible=False)
|
257 |
-
|
258 |
-
upload_and_manage,
|
259 |
-
inputs=[file_input, language_input],
|
260 |
-
outputs=[editable_translations, processed_video_output]
|
261 |
-
)
|
262 |
with gr.Column(scale=5):
|
263 |
|
264 |
gr.Markdown("## Edit Translations")
|
@@ -303,7 +299,12 @@ def build_interface():
|
|
303 |
outputs=[processed_video_output]
|
304 |
)
|
305 |
|
306 |
-
|
|
|
|
|
|
|
|
|
|
|
307 |
# Connect submit button to save_feedback_db function
|
308 |
feedback_btn.click(
|
309 |
feedback_submission,
|
|
|
254 |
language_input = gr.Dropdown(["en", "es", "fr", "zh"], label="Select Language") # Language codes
|
255 |
submit_button = gr.Button("Post and Process")
|
256 |
editable_translations = gr.JSON(visible=False)
|
257 |
+
|
|
|
|
|
|
|
|
|
258 |
with gr.Column(scale=5):
|
259 |
|
260 |
gr.Markdown("## Edit Translations")
|
|
|
299 |
outputs=[processed_video_output]
|
300 |
)
|
301 |
|
302 |
+
submit_button.click(
|
303 |
+
upload_and_manage,
|
304 |
+
inputs=[file_input, language_input],
|
305 |
+
outputs=[editable_translations, processed_video_output]
|
306 |
+
)
|
307 |
+
|
308 |
# Connect submit button to save_feedback_db function
|
309 |
feedback_btn.click(
|
310 |
feedback_submission,
|