wenhu commited on
Commit
2447425
·
verified ·
1 Parent(s): c89d0bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -66,10 +66,13 @@ with gr.Blocks() as block:
66
  data_component = gr.components.Dataframe(
67
  value=df[COLUMN_NAMES],
68
  headers=COLUMN_NAMES,
69
- type="pandas",
70
  datatype=DATA_TITLE_TYPE,
71
  interactive=False,
72
  visible=True,
 
 
 
73
  )
74
 
75
  refresh_button = gr.Button("Refresh")
 
66
  data_component = gr.components.Dataframe(
67
  value=df[COLUMN_NAMES],
68
  headers=COLUMN_NAMES,
69
+ # type="pandas",
70
  datatype=DATA_TITLE_TYPE,
71
  interactive=False,
72
  visible=True,
73
+ elem_classes="custom-dataframe",
74
+ max_height=2400,
75
+ column_widths=["100px", "240px"] + ["160px"] * 3 + ["210px"] * (len(initial_headers) - 5),
76
  )
77
 
78
  refresh_button = gr.Button("Refresh")