Spaces:
Runtime error
Runtime error
spitzc32
commited on
Commit
·
6f1c33d
1
Parent(s):
87cc30e
Made loading false
Browse files
app.py
CHANGED
|
@@ -7,6 +7,8 @@ pn.extension('tabulator')
|
|
| 7 |
import warnings
|
| 8 |
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(value="George Washington lives in Washington", height=300, name='Add text')
|
|
@@ -58,7 +60,7 @@ template = pn.template.FastListTemplate(
|
|
| 58 |
button,
|
| 59 |
text_widget
|
| 60 |
],
|
| 61 |
-
main=[
|
| 62 |
accent_base_color="#88d8b0",
|
| 63 |
header_background="#88d8b0",
|
| 64 |
)
|
|
|
|
| 7 |
import warnings
|
| 8 |
warnings.filterwarnings('ignore')
|
| 9 |
|
| 10 |
+
idf = df.interactive()
|
| 11 |
+
|
| 12 |
# Variables for Interactive selections
|
| 13 |
tagger = Bi_LSTM_CRF.load("checkpoints/best-model.pt")
|
| 14 |
text_widget = pn.widgets.TextAreaInput(value="George Washington lives in Washington", height=300, name='Add text')
|
|
|
|
| 60 |
button,
|
| 61 |
text_widget
|
| 62 |
],
|
| 63 |
+
main=[interactive],
|
| 64 |
accent_base_color="#88d8b0",
|
| 65 |
header_background="#88d8b0",
|
| 66 |
)
|