atharvthite05 commited on
Commit
123b59f
·
verified ·
1 Parent(s): 98e8f2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -14
app.py CHANGED
@@ -421,25 +421,23 @@ body, .gradio-container {
421
  .dataframe-wrap td:focus-within > div,
422
  .dataframe-wrap td:focus-within > span,
423
  .dataframe-wrap td:focus-within > p {
424
- white-space: normal !important;
425
- overflow-wrap: anywhere !important;
426
- word-break: break-word !important;
427
- max-height: 9em !important;
428
- overflow-y: auto !important;
429
- padding-right: 2px !important;
430
  }
431
  .dataframe-wrap textarea,
432
  .dataframe-wrap input[type="text"] {
433
- white-space: pre-wrap !important;
434
- overflow-wrap: anywhere !important;
435
- word-break: break-word !important;
 
436
  }
437
  .dataframe-wrap textarea {
438
  min-height: 38px !important;
439
  height: 38px !important;
440
- max-height: 160px !important;
441
- overflow-y: auto !important;
442
- resize: vertical !important;
443
  }
444
  .dataframe-wrap tr:hover td { background: var(--bg-hover) !important; }
445
  .dataframe-wrap input[type="checkbox"] {
@@ -864,7 +862,7 @@ def build_app() -> gr.Blocks:
864
  "bool", "str", "str",
865
  ],
866
  interactive=True,
867
- wrap=True,
868
  elem_classes=["dataframe-wrap"],
869
  )
870
 
@@ -1003,7 +1001,7 @@ if __name__ == "__main__":
1003
  demo.launch(
1004
  server_name="0.0.0.0",
1005
  server_port=7860,
1006
- share=True,
1007
  show_error=True,
1008
  allowed_paths=[str(OUTPUTS_DIR.resolve())],
1009
  css=CUSTOM_CSS,
 
421
  .dataframe-wrap td:focus-within > div,
422
  .dataframe-wrap td:focus-within > span,
423
  .dataframe-wrap td:focus-within > p {
424
+ white-space: nowrap !important;
425
+ overflow: hidden !important;
426
+ text-overflow: ellipsis !important;
 
 
 
427
  }
428
  .dataframe-wrap textarea,
429
  .dataframe-wrap input[type="text"] {
430
+ white-space: nowrap !important;
431
+ overflow-wrap: normal !important;
432
+ word-break: normal !important;
433
+ overflow-x: auto !important;
434
  }
435
  .dataframe-wrap textarea {
436
  min-height: 38px !important;
437
  height: 38px !important;
438
+ max-height: 38px !important;
439
+ overflow-y: hidden !important;
440
+ resize: none !important;
441
  }
442
  .dataframe-wrap tr:hover td { background: var(--bg-hover) !important; }
443
  .dataframe-wrap input[type="checkbox"] {
 
862
  "bool", "str", "str",
863
  ],
864
  interactive=True,
865
+ wrap=False,
866
  elem_classes=["dataframe-wrap"],
867
  )
868
 
 
1001
  demo.launch(
1002
  server_name="0.0.0.0",
1003
  server_port=7860,
1004
+ share=False,
1005
  show_error=True,
1006
  allowed_paths=[str(OUTPUTS_DIR.resolve())],
1007
  css=CUSTOM_CSS,