richiam commited on
Commit
605087e
·
verified ·
1 Parent(s): dc06057

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +56 -38
app.py CHANGED
@@ -661,10 +661,13 @@ def clustering_tab():
661
  dbc.Row([dbc.Col(html.Div(id="plot-status", className="text-danger small mb-1"))]),
662
  dbc.Row([
663
  dbc.Col(
664
- dcc.Graph(
665
- id="cluster-graph",
666
- config={"displayModeBar": True, "toImageButtonOptions": {"format": "svg"}},
667
- style={"height": "650px"},
 
 
 
668
  ),
669
  width=12,
670
  ),
@@ -725,25 +728,28 @@ def grid_metrics_tab():
725
  ], width=4),
726
  ]),
727
  ], className="filter-panel"),
728
- dbc.Row([
729
- dbc.Col(
730
- dcc.Graph(id="metrics-heatmap",
731
- config={"displayModeBar": True,
732
- "toImageButtonOptions": {"format": "svg"}},
733
- style={"height": "420px"}),
734
- width=6,
735
- ),
736
- dbc.Col(
737
- dcc.Graph(id="metrics-model-compare",
738
- config={"displayModeBar": True,
739
- "toImageButtonOptions": {"format": "svg"}},
740
- style={"height": "420px"}),
741
- width=6,
742
- ),
743
- ], className="mt-3"),
 
 
 
744
  html.Hr(),
745
  html.H6("Best parameter combinations", className="fw-semibold mt-2 mb-2"),
746
- html.Div(id="metrics-best-table"),
747
  ], fluid=True, className="pt-3")
748
 
749
 
@@ -1020,10 +1026,13 @@ def evaluation_tab():
1020
  "Click a bar to see examples.",
1021
  className="text-muted small mt-2 mb-1",
1022
  ),
1023
- dcc.Graph(id="eval-llm-graph",
1024
- config={"displayModeBar": True, "toImageButtonOptions": {"format": "png", "filename": "purification_conditions_llm"}},
1025
- style={"height": "460px"}),
1026
- html.Div(id="eval-llm-examples", className="mt-3"),
 
 
 
1027
  ]),
1028
  dbc.Tab(label="NLP-based Evaluation", tab_id="eval-tab-nlp", children=[
1029
  dbc.Row([
@@ -1038,10 +1047,13 @@ def evaluation_tab():
1038
  ),
1039
  ], width=12, md=3),
1040
  ], className="mb-2"),
1041
- dcc.Graph(id="eval-nlp-graph",
1042
- config={"displayModeBar": True, "toImageButtonOptions": {"format": "png", "filename": "purification_conditions_nlp"}},
1043
- style={"height": "460px"}),
1044
- html.Div(id="eval-nlp-examples", className="mt-3"),
 
 
 
1045
  ]),
1046
  ], id="eval-sub-tabs", active_tab="eval-tab-llm"),
1047
  ],
@@ -1069,10 +1081,13 @@ def evaluation_tab():
1069
  labelStyle={"marginRight": "16px"},
1070
  className="mb-3",
1071
  ),
1072
- dcc.Graph(id="eval-classif-graph",
1073
- config={"displayModeBar": False},
1074
- style={"height": "320px"}),
1075
- html.Div(id="eval-classif-examples", className="mt-3"),
 
 
 
1076
  ],
1077
  ),
1078
 
@@ -1097,11 +1112,14 @@ def evaluation_tab():
1097
  labelStyle={"marginRight": "16px"},
1098
  className="mb-3",
1099
  ),
1100
- html.Div(id="confmat-cards"),
1101
- dcc.Graph(id="confmat-heatmap",
1102
- config={"displayModeBar": False},
1103
- style={"height": "340px"}),
1104
- html.Div(id="confmat-examples", className="mt-3"),
 
 
 
1105
  ],
1106
  ),
1107
 
 
661
  dbc.Row([dbc.Col(html.Div(id="plot-status", className="text-danger small mb-1"))]),
662
  dbc.Row([
663
  dbc.Col(
664
+ dcc.Loading(
665
+ dcc.Graph(
666
+ id="cluster-graph",
667
+ config={"displayModeBar": True, "toImageButtonOptions": {"format": "svg"}},
668
+ style={"height": "650px"},
669
+ ),
670
+ type="circle", color="#1a73e8",
671
  ),
672
  width=12,
673
  ),
 
728
  ], width=4),
729
  ]),
730
  ], className="filter-panel"),
731
+ dcc.Loading(
732
+ dbc.Row([
733
+ dbc.Col(
734
+ dcc.Graph(id="metrics-heatmap",
735
+ config={"displayModeBar": True,
736
+ "toImageButtonOptions": {"format": "svg"}},
737
+ style={"height": "420px"}),
738
+ width=6,
739
+ ),
740
+ dbc.Col(
741
+ dcc.Graph(id="metrics-model-compare",
742
+ config={"displayModeBar": True,
743
+ "toImageButtonOptions": {"format": "svg"}},
744
+ style={"height": "420px"}),
745
+ width=6,
746
+ ),
747
+ ], className="mt-3"),
748
+ type="circle", color="#1a73e8",
749
+ ),
750
  html.Hr(),
751
  html.H6("Best parameter combinations", className="fw-semibold mt-2 mb-2"),
752
+ dcc.Loading(html.Div(id="metrics-best-table"), type="circle", color="#1a73e8"),
753
  ], fluid=True, className="pt-3")
754
 
755
 
 
1026
  "Click a bar to see examples.",
1027
  className="text-muted small mt-2 mb-1",
1028
  ),
1029
+ dcc.Loading(
1030
+ dcc.Graph(id="eval-llm-graph",
1031
+ config={"displayModeBar": True, "toImageButtonOptions": {"format": "png", "filename": "purification_conditions_llm"}},
1032
+ style={"height": "460px"}),
1033
+ type="circle", color="#1a73e8",
1034
+ ),
1035
+ dcc.Loading(html.Div(id="eval-llm-examples", className="mt-3"), type="circle", color="#1a73e8"),
1036
  ]),
1037
  dbc.Tab(label="NLP-based Evaluation", tab_id="eval-tab-nlp", children=[
1038
  dbc.Row([
 
1047
  ),
1048
  ], width=12, md=3),
1049
  ], className="mb-2"),
1050
+ dcc.Loading(
1051
+ dcc.Graph(id="eval-nlp-graph",
1052
+ config={"displayModeBar": True, "toImageButtonOptions": {"format": "png", "filename": "purification_conditions_nlp"}},
1053
+ style={"height": "460px"}),
1054
+ type="circle", color="#1a73e8",
1055
+ ),
1056
+ dcc.Loading(html.Div(id="eval-nlp-examples", className="mt-3"), type="circle", color="#1a73e8"),
1057
  ]),
1058
  ], id="eval-sub-tabs", active_tab="eval-tab-llm"),
1059
  ],
 
1081
  labelStyle={"marginRight": "16px"},
1082
  className="mb-3",
1083
  ),
1084
+ dcc.Loading(
1085
+ dcc.Graph(id="eval-classif-graph",
1086
+ config={"displayModeBar": False},
1087
+ style={"height": "320px"}),
1088
+ type="circle", color="#1a73e8",
1089
+ ),
1090
+ dcc.Loading(html.Div(id="eval-classif-examples", className="mt-3"), type="circle", color="#1a73e8"),
1091
  ],
1092
  ),
1093
 
 
1112
  labelStyle={"marginRight": "16px"},
1113
  className="mb-3",
1114
  ),
1115
+ dcc.Loading(html.Div(id="confmat-cards"), type="circle", color="#1a73e8"),
1116
+ dcc.Loading(
1117
+ dcc.Graph(id="confmat-heatmap",
1118
+ config={"displayModeBar": False},
1119
+ style={"height": "340px"}),
1120
+ type="circle", color="#1a73e8",
1121
+ ),
1122
+ dcc.Loading(html.Div(id="confmat-examples", className="mt-3"), type="circle", color="#1a73e8"),
1123
  ],
1124
  ),
1125