Upload folder using huggingface_hub
Browse files- app/draw_diagram.py +2 -1
- app/summarization.py +3 -1
app/draw_diagram.py
CHANGED
|
@@ -81,7 +81,8 @@ def draw(folder_name, category_name, dataset_name, metrics, cus_sort=True):
|
|
| 81 |
# Create a DataFrame with the same shape as the input
|
| 82 |
df_style = pd.DataFrame('', index=x.index, columns=x.columns)
|
| 83 |
# Apply background color to the first element in row 0 (df[0][0])
|
| 84 |
-
df_style.iloc[0, 1] = 'background-color: #b0c1d7; color: white'
|
|
|
|
| 85 |
|
| 86 |
return df_style
|
| 87 |
|
|
|
|
| 81 |
# Create a DataFrame with the same shape as the input
|
| 82 |
df_style = pd.DataFrame('', index=x.index, columns=x.columns)
|
| 83 |
# Apply background color to the first element in row 0 (df[0][0])
|
| 84 |
+
# df_style.iloc[0, 1] = 'background-color: #b0c1d7; color: white'
|
| 85 |
+
df_style.iloc[0, 1] = 'background-color: #b0c1d7'
|
| 86 |
|
| 87 |
return df_style
|
| 88 |
|
app/summarization.py
CHANGED
|
@@ -99,7 +99,9 @@ def sum_table_mulit_metrix(task_name, metrics_lists: List[str]):
|
|
| 99 |
# Create a DataFrame with the same shape as the input
|
| 100 |
df_style = pd.DataFrame('', index=x.index, columns=x.columns)
|
| 101 |
# Apply background color to the first element in row 0 (df[0][0])
|
| 102 |
-
df_style.iloc[0, 1] = 'background-color: #b0c1d7; color: white'
|
|
|
|
|
|
|
| 103 |
return df_style
|
| 104 |
|
| 105 |
|
|
|
|
| 99 |
# Create a DataFrame with the same shape as the input
|
| 100 |
df_style = pd.DataFrame('', index=x.index, columns=x.columns)
|
| 101 |
# Apply background color to the first element in row 0 (df[0][0])
|
| 102 |
+
# df_style.iloc[0, 1] = 'background-color: #b0c1d7; color: white'
|
| 103 |
+
df_style.iloc[0, 1] = 'background-color: #b0c1d7'
|
| 104 |
+
|
| 105 |
return df_style
|
| 106 |
|
| 107 |
|