qqwjq1981 commited on
Commit
ca4893a
·
verified ·
1 Parent(s): 486838c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -281,22 +281,22 @@ def build_interface():
281
  /* Set column widths */
282
  [data-testid="block-container"] .scrolling-dataframe th:nth-child(1),
283
  [data-testid="block-container"] .scrolling-dataframe td:nth-child(1) {
284
- width: 5%; /* Start column */
285
  }
286
 
287
  [data-testid="block-container"] .scrolling-dataframe th:nth-child(2),
288
  [data-testid="block-container"] .scrolling-dataframe td:nth-child(2) {
289
- width: 45%; /* Original text */
290
  }
291
 
292
  [data-testid="block-container"] .scrolling-dataframe th:nth-child(3),
293
  [data-testid="block-container"] .scrolling-dataframe td:nth-child(3) {
294
- width: 45%; /* Translated text */
295
  }
296
 
297
  [data-testid="block-container"] .scrolling-dataframe th:nth-child(4),
298
  [data-testid="block-container"] .scrolling-dataframe td:nth-child(4) {
299
- width: 5%; /* End column */
300
  }
301
  """
302
  with gr.Blocks(css=css) as demo:
 
281
  /* Set column widths */
282
  [data-testid="block-container"] .scrolling-dataframe th:nth-child(1),
283
  [data-testid="block-container"] .scrolling-dataframe td:nth-child(1) {
284
+ width: 6%; /* Start column */
285
  }
286
 
287
  [data-testid="block-container"] .scrolling-dataframe th:nth-child(2),
288
  [data-testid="block-container"] .scrolling-dataframe td:nth-child(2) {
289
+ width: 47%; /* Original text */
290
  }
291
 
292
  [data-testid="block-container"] .scrolling-dataframe th:nth-child(3),
293
  [data-testid="block-container"] .scrolling-dataframe td:nth-child(3) {
294
+ width: 47%; /* Translated text */
295
  }
296
 
297
  [data-testid="block-container"] .scrolling-dataframe th:nth-child(4),
298
  [data-testid="block-container"] .scrolling-dataframe td:nth-child(4) {
299
+ width: 0%; /* End column */
300
  }
301
  """
302
  with gr.Blocks(css=css) as demo: