Spaces:
Runtime error
Runtime error
spitzc32
commited on
Commit
·
87cc30e
1
Parent(s):
69e7669
Fixes to text widget
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ warnings.filterwarnings('ignore')
|
|
| 9 |
|
| 10 |
# Variables for Interactive selections
|
| 11 |
tagger = Bi_LSTM_CRF.load("checkpoints/best-model.pt")
|
| 12 |
-
text_widget = pn.widgets.TextAreaInput(height=300, name='Add text')
|
| 13 |
button = pn.widgets.Button(name="Click me to run!")
|
| 14 |
explanation = pn.pane.Markdown(
|
| 15 |
"""
|
|
@@ -55,8 +55,8 @@ interactive = pn.bind(get_tag_results, button)
|
|
| 55 |
template = pn.template.FastListTemplate(
|
| 56 |
title='Model API',
|
| 57 |
sidebar=[
|
| 58 |
-
text_widget,
|
| 59 |
button,
|
|
|
|
| 60 |
],
|
| 61 |
main=[pn.panel(interactive, loading_indicator=True)],
|
| 62 |
accent_base_color="#88d8b0",
|
|
|
|
| 9 |
|
| 10 |
# Variables for Interactive selections
|
| 11 |
tagger = Bi_LSTM_CRF.load("checkpoints/best-model.pt")
|
| 12 |
+
text_widget = pn.widgets.TextAreaInput(value="George Washington lives in Washington", height=300, name='Add text')
|
| 13 |
button = pn.widgets.Button(name="Click me to run!")
|
| 14 |
explanation = pn.pane.Markdown(
|
| 15 |
"""
|
|
|
|
| 55 |
template = pn.template.FastListTemplate(
|
| 56 |
title='Model API',
|
| 57 |
sidebar=[
|
|
|
|
| 58 |
button,
|
| 59 |
+
text_widget
|
| 60 |
],
|
| 61 |
main=[pn.panel(interactive, loading_indicator=True)],
|
| 62 |
accent_base_color="#88d8b0",
|