qqwjq1981 commited on
Commit
158d2de
·
verified ·
1 Parent(s): c9e6abe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -240,7 +240,16 @@ def upload_and_manage(file, language):
240
 
241
  # Gradio Interface with Tabs
242
  def build_interface():
243
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
244
  gr.Markdown("## Video Localization")
245
  with gr.Row():
246
  with gr.Column(scale=4):
@@ -261,6 +270,7 @@ def build_interface():
261
  col_count=4,
262
  interactive=[False, True, True, False], # Control editability
263
  label="Edit Translations",
 
264
  )
265
  save_changes_button = gr.Button("Save Changes")
266
  processed_video_output = gr.File(label="Download Processed Video", interactive=True) # Download button
 
240
 
241
  # Gradio Interface with Tabs
242
  def build_interface():
243
+ css = """
244
+ .dataframe-container tr {
245
+ height: 50px !important; /* Adjust height */
246
+ }
247
+ .dataframe-container td {
248
+ white-space: normal !important; /* Allow text wrapping */
249
+ word-break: break-word !important; /* Prevent text overflow */
250
+ }
251
+ """
252
+ with gr.Blocks(css=css) as demo:
253
  gr.Markdown("## Video Localization")
254
  with gr.Row():
255
  with gr.Column(scale=4):
 
270
  col_count=4,
271
  interactive=[False, True, True, False], # Control editability
272
  label="Edit Translations",
273
+ wrap=True # Enables text wrapping if supported
274
  )
275
  save_changes_button = gr.Button("Save Changes")
276
  processed_video_output = gr.File(label="Download Processed Video", interactive=True) # Download button