Spaces:
Running
Running
ZeroCommand
commited on
Commit
•
02cf07d
1
Parent(s):
b56bfdc
Fix-scan-config-initialize-bug (#127)
Browse files- use fixed initialization instead of selected from file (04d0790470fb1b0dc1d383541523d7b356e37740)
- app_text_classification.py +10 -1
app_text_classification.py
CHANGED
@@ -120,7 +120,16 @@ def get_demo():
|
|
120 |
# we remove data_leakage from the default scanners
|
121 |
# Reason: data_leakage barely raises any issues and takes too many requests
|
122 |
# when using inference API, causing rate limit error
|
123 |
-
scan_config =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
return gr.update(
|
125 |
choices=scan_config, value=selected, label="Scan Settings", visible=True
|
126 |
)
|
|
|
120 |
# we remove data_leakage from the default scanners
|
121 |
# Reason: data_leakage barely raises any issues and takes too many requests
|
122 |
# when using inference API, causing rate limit error
|
123 |
+
scan_config = [
|
124 |
+
"ethical_bias",
|
125 |
+
"text_perturbation",
|
126 |
+
"robustness",
|
127 |
+
"performance",
|
128 |
+
"underconfidence",
|
129 |
+
"overconfidence",
|
130 |
+
"spurious_correlation",
|
131 |
+
"data_leakage",
|
132 |
+
]
|
133 |
return gr.update(
|
134 |
choices=scan_config, value=selected, label="Scan Settings", visible=True
|
135 |
)
|