Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,9 +55,7 @@ with gr.Blocks() as demo:
|
|
| 55 |
submit = gr.Button("Submit")
|
| 56 |
# with gr.Accordion("Examples", open=False):
|
| 57 |
example_dropdown = gr.Dropdown(label="Examples", choices=examples)
|
| 58 |
-
example_dropdown.change(
|
| 59 |
-
lambda x: gr.Textbox.update(value=x), inputs=example_dropdown, outputs=note
|
| 60 |
-
)
|
| 61 |
highlight = gr.HighlightedText(label="NER", combine_adjacent=True)
|
| 62 |
table = gr.Dataframe(headers=["Entity", "Count"])
|
| 63 |
plot = gr.Plot(label="Bar")
|
|
|
|
| 55 |
submit = gr.Button("Submit")
|
| 56 |
# with gr.Accordion("Examples", open=False):
|
| 57 |
example_dropdown = gr.Dropdown(label="Examples", choices=examples)
|
| 58 |
+
example_dropdown.change(lambda x: x, inputs=example_dropdown, outputs=note)
|
|
|
|
|
|
|
| 59 |
highlight = gr.HighlightedText(label="NER", combine_adjacent=True)
|
| 60 |
table = gr.Dataframe(headers=["Entity", "Count"])
|
| 61 |
plot = gr.Plot(label="Bar")
|