LennardZuendorf commited on
Commit
ba1dc89
1 Parent(s): 9c0635e

feat: adding basic db implementation, updating naming

Browse files
Files changed (3) hide show
  1. backend/controller.py +2 -2
  2. backend/db.json +0 -0
  3. 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", "Visualizer"):
29
  match xai_selection.lower():
30
  case "shap":
31
  xai = sint
32
- case "visualizer":
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", "Visualizer"],
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",