Spaces:
Runtime error
Runtime error
feat: adding basic db implementation, updating naming
Browse files- backend/controller.py +2 -2
- backend/db.json +0 -0
- main.py +1 -1
backend/controller.py
CHANGED
|
@@ -25,11 +25,11 @@ def interference(
|
|
| 25 |
"""
|
| 26 |
|
| 27 |
# if a XAI approach is selected, grab the XAI instance
|
| 28 |
-
if xai_selection in ("SHAP", "
|
| 29 |
match xai_selection.lower():
|
| 30 |
case "shap":
|
| 31 |
xai = sint
|
| 32 |
-
case "
|
| 33 |
xai = viz
|
| 34 |
case _:
|
| 35 |
# use Gradio warning to display error message
|
|
|
|
| 25 |
"""
|
| 26 |
|
| 27 |
# if a XAI approach is selected, grab the XAI instance
|
| 28 |
+
if xai_selection in ("SHAP", "Attention"):
|
| 29 |
match xai_selection.lower():
|
| 30 |
case "shap":
|
| 31 |
xai = sint
|
| 32 |
+
case "attention":
|
| 33 |
xai = viz
|
| 34 |
case _:
|
| 35 |
# use Gradio warning to display error message
|
backend/db.json
ADDED
|
File without changes
|
main.py
CHANGED
|
@@ -93,7 +93,7 @@ with gr.Blocks(
|
|
| 93 |
with gr.Column(scale=1):
|
| 94 |
# checkbox group to select the xai method
|
| 95 |
xai_selection = gr.Radio(
|
| 96 |
-
["None", "SHAP", "
|
| 97 |
label="XAI Settings",
|
| 98 |
info="Select a XAI Implementation to use.",
|
| 99 |
value="None",
|
|
|
|
| 93 |
with gr.Column(scale=1):
|
| 94 |
# checkbox group to select the xai method
|
| 95 |
xai_selection = gr.Radio(
|
| 96 |
+
["None", "SHAP", "Attention"],
|
| 97 |
label="XAI Settings",
|
| 98 |
info="Select a XAI Implementation to use.",
|
| 99 |
value="None",
|