Spaces:
Sleeping
Sleeping
Nguyen Thi Dieu Hien
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ class NewsClassifier(nn.Module):
|
|
66 |
x = self.fc(x)
|
67 |
return x
|
68 |
|
69 |
-
@st.
|
70 |
def load_models(model_type):
|
71 |
models = None
|
72 |
model = None
|
|
|
66 |
x = self.fc(x)
|
67 |
return x
|
68 |
|
69 |
+
@st.cache
|
70 |
def load_models(model_type):
|
71 |
models = None
|
72 |
model = None
|