Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ with demo:
|
|
49 |
sentence_dropdown = gr.Dropdown(label="Sentence",
|
50 |
choices=[x.split('</s> ')[1] for x in dataset['text']],
|
51 |
value=0, min_width=500, type='index')
|
52 |
-
vis_dropdown = gr.Dropdown(label="Visualization", choices=[x.value for x in VisType] + ['Layer #'
|
53 |
min_width=150, value=VisType.SUM, type='value')
|
54 |
btn = gr.Button("Run", min_width=30)
|
55 |
output = gr.Plot(label="Plot", container=True)
|
|
|
49 |
sentence_dropdown = gr.Dropdown(label="Sentence",
|
50 |
choices=[x.split('</s> ')[1] for x in dataset['text']],
|
51 |
value=0, min_width=500, type='index')
|
52 |
+
vis_dropdown = gr.Dropdown(label="Visualization", choices=[x.value for x in VisType] + [f'Layer #{i}' for i in range(num_layers)],
|
53 |
min_width=150, value=VisType.SUM, type='value')
|
54 |
btn = gr.Button("Run", min_width=30)
|
55 |
output = gr.Plot(label="Plot", container=True)
|