cnp-ai commited on
Commit
be02948
·
verified ·
1 Parent(s): 467ad95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -268,6 +268,7 @@ guide = """> ### 저작권 및 유의사항 안내
268
  시앤피컨설팅그룹 일터혁신본부  |  Tel. 02-6257-1448  |  http://www.cnp.re.kr  |  hpw@cnp.re.kr
269
  """
270
 
 
271
 
272
  with gr.Blocks(css=css) as demo:
273
 
@@ -297,17 +298,17 @@ with gr.Blocks(css=css) as demo:
297
  with gr.Row():
298
  kpi_checkbox = gr.CheckboxGroup(choices=[], interactive=True, elem_classes="v_check", container=False, min_width=5, scale=1)
299
 
300
- kpi_table1 = gr.Dataframe(label="BGE",scale=33, value=[], show_label=False, max_height = 650,
301
  # ['지표명', '산식','비고', '카테고리']
302
  column_widths=[80, 180, 160, 70],
303
  datatype=["str", "str", "str", "str"],
304
  )
305
- kpi_table2 = gr.Dataframe(label="SBERT-snunlp",scale=33, value=[], show_label=False, max_height = 650,
306
  # ['지표명', '산식','비고', '카테고리']
307
  column_widths=[80, 180, 160, 70],
308
  datatype=["str", "str", "str", "str"],
309
  )
310
- kpi_table3 = gr.Dataframe(label="SBERT-jhgan",scale=33, value=[], show_label=False, max_height = 650,
311
  # ['지표명', '산식','비고', '카테고리']
312
  column_widths=[80, 180, 160, 70],
313
  datatype=["str", "str", "str", "str"],
 
268
  시앤피컨설팅그룹 일터혁신본부  |  Tel. 02-6257-1448  |  http://www.cnp.re.kr  |  hpw@cnp.re.kr
269
  """
270
 
271
+ empty_df = pd.DataFrame(columns=["지표명", "산식", "비고", "카테고리"])
272
 
273
  with gr.Blocks(css=css) as demo:
274
 
 
298
  with gr.Row():
299
  kpi_checkbox = gr.CheckboxGroup(choices=[], interactive=True, elem_classes="v_check", container=False, min_width=5, scale=1)
300
 
301
+ kpi_table1 = gr.Dataframe(label="BGE",scale=33, value=empty_df, show_label=False, max_height = 650,
302
  # ['지표명', '산식','비고', '카테고리']
303
  column_widths=[80, 180, 160, 70],
304
  datatype=["str", "str", "str", "str"],
305
  )
306
+ kpi_table2 = gr.Dataframe(label="SBERT-snunlp",scale=33, value=empty_df, show_label=False, max_height = 650,
307
  # ['지표명', '산식','비고', '카테고리']
308
  column_widths=[80, 180, 160, 70],
309
  datatype=["str", "str", "str", "str"],
310
  )
311
+ kpi_table3 = gr.Dataframe(label="SBERT-jhgan",scale=33, value=empty_df, show_label=False, max_height = 650,
312
  # ['지표명', '산식','비고', '카테고리']
313
  column_widths=[80, 180, 160, 70],
314
  datatype=["str", "str", "str", "str"],