dar-tau commited on
Commit
dae383f
1 Parent(s): c5fa8a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 #' + 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)
 
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)