qqwjq1981 commited on
Commit
e5a54e6
·
verified ·
1 Parent(s): c5bc749

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -173,6 +173,7 @@ def update_translations(file, edited_table):
173
  Update the translations based on user edits in the Gradio Dataframe.
174
  """
175
  output_video_path = "output_video.mp4"
 
176
 
177
  try:
178
  # Convert the edited_table (list of lists) back to list of dictionaries
@@ -243,14 +244,14 @@ def build_interface():
243
  # with gr.Tab("Content Management"):
244
  gr.Markdown("## Video Localization")
245
  with gr.Row():
246
- with gr.Column(scale=5):
247
  file_input = gr.File(label="Upload Video/Audio File")
248
  # platform_input = gr.Dropdown(["YouTube", "Instagram"], label="Select Platform")
249
  language_input = gr.Dropdown(["en", "es", "fr", "zh"], label="Select Language") # Language codes
250
  submit_button = gr.Button("Post and Process")
251
  editable_translations = gr.State(value=[])
252
 
253
- with gr.Column(scale=5):
254
 
255
  gr.Markdown("## Edit Translations")
256
 
 
173
  Update the translations based on user edits in the Gradio Dataframe.
174
  """
175
  output_video_path = "output_video.mp4"
176
+ logger.debug(f"Editable Table: {editable_table}")
177
 
178
  try:
179
  # Convert the edited_table (list of lists) back to list of dictionaries
 
244
  # with gr.Tab("Content Management"):
245
  gr.Markdown("## Video Localization")
246
  with gr.Row():
247
+ with gr.Column(scale=4):
248
  file_input = gr.File(label="Upload Video/Audio File")
249
  # platform_input = gr.Dropdown(["YouTube", "Instagram"], label="Select Platform")
250
  language_input = gr.Dropdown(["en", "es", "fr", "zh"], label="Select Language") # Language codes
251
  submit_button = gr.Button("Post and Process")
252
  editable_translations = gr.State(value=[])
253
 
254
+ with gr.Column(scale=8):
255
 
256
  gr.Markdown("## Edit Translations")
257