Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,13 +48,13 @@ with gr.Blocks() as demo:
|
|
48 |
)
|
49 |
task_selector = gr.Dropdown(
|
50 |
choices=[
|
51 |
-
"Layer wise non-linearity
|
52 |
"Next-token prediction from intermediate representations",
|
53 |
"Contextualization measurement",
|
54 |
"Layerwise predictions (logit lens)",
|
55 |
"Tokenwise loss without i-th layer"
|
56 |
],
|
57 |
-
value="Layer wise non-linearity
|
58 |
label="Select Mode"
|
59 |
)
|
60 |
normalization_selector = gr.Dropdown(
|
@@ -74,7 +74,7 @@ with gr.Blocks() as demo:
|
|
74 |
return img, combined_log
|
75 |
|
76 |
def set_default(task_name: str) -> str:
|
77 |
-
if task_name == "Layer wise non-linearity
|
78 |
return "token-wise"
|
79 |
if task_name == "Next-token prediction from intermediate representations":
|
80 |
return "token-wise"
|
|
|
48 |
)
|
49 |
task_selector = gr.Dropdown(
|
50 |
choices=[
|
51 |
+
"Layer wise non-linearity",
|
52 |
"Next-token prediction from intermediate representations",
|
53 |
"Contextualization measurement",
|
54 |
"Layerwise predictions (logit lens)",
|
55 |
"Tokenwise loss without i-th layer"
|
56 |
],
|
57 |
+
value="Layer wise non-linearity",
|
58 |
label="Select Mode"
|
59 |
)
|
60 |
normalization_selector = gr.Dropdown(
|
|
|
74 |
return img, combined_log
|
75 |
|
76 |
def set_default(task_name: str) -> str:
|
77 |
+
if task_name == "Layer wise non-linearity":
|
78 |
return "token-wise"
|
79 |
if task_name == "Next-token prediction from intermediate representations":
|
80 |
return "token-wise"
|