Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ with demo:
|
|
41 |
choices=[x.split('</s> ')[1] for x in dataset['text']],
|
42 |
value=0, min_width=500, type='index')
|
43 |
vis_dropdown = gr.Dropdown(label="Visualization", choices=list(VisType),
|
44 |
-
min_width=
|
45 |
-
btn = gr.Button("Run")
|
46 |
output = gr.Plot(label="Plot", container=True)
|
47 |
metrics = gr.Label("Metrics")
|
48 |
btn.click(analyze_sentence, [sentence_dropdown, vis_dropdown], [output, metrics])
|
|
|
41 |
choices=[x.split('</s> ')[1] for x in dataset['text']],
|
42 |
value=0, min_width=500, type='index')
|
43 |
vis_dropdown = gr.Dropdown(label="Visualization", choices=list(VisType),
|
44 |
+
min_width=100, value=VisType.ALL, type='value')
|
45 |
+
btn = gr.Button("Run", min_width=50)
|
46 |
output = gr.Plot(label="Plot", container=True)
|
47 |
metrics = gr.Label("Metrics")
|
48 |
btn.click(analyze_sentence, [sentence_dropdown, vis_dropdown], [output, metrics])
|