Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ classes = ['pt', 'pt_br']
|
|
23 |
class_label = ClassLabel(names=classes)
|
24 |
|
25 |
|
26 |
-
@st.
|
27 |
def get_model():
|
28 |
return BertForSequenceClassification.from_pretrained(
|
29 |
'./pt_br_model',
|
|
|
23 |
class_label = ClassLabel(names=classes)
|
24 |
|
25 |
|
26 |
+
@st.cache
|
27 |
def get_model():
|
28 |
return BertForSequenceClassification.from_pretrained(
|
29 |
'./pt_br_model',
|