Spaces:
Runtime error
Runtime error
Commit
·
0ea3763
1
Parent(s):
88b4df7
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,8 @@ import datasets
|
|
| 7 |
def load_model():
|
| 8 |
return AutoModelForSequenceClassification.from_pretrained('./')
|
| 9 |
|
| 10 |
-
tokenizer
|
|
|
|
| 11 |
model = load_model()
|
| 12 |
|
| 13 |
title = st.text_area('Title')
|
|
|
|
| 7 |
def load_model():
|
| 8 |
return AutoModelForSequenceClassification.from_pretrained('./')
|
| 9 |
|
| 10 |
+
if 'tokenizer' not in globals():
|
| 11 |
+
tokenizer = AutoTokenizer.from_pretrained('distilbert-base-cased')
|
| 12 |
model = load_model()
|
| 13 |
|
| 14 |
title = st.text_area('Title')
|