Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -33,6 +33,7 @@ def predict_hoax(title, content):
|
|
33 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
34 |
model.to(device)
|
35 |
|
|
|
36 |
# LIME prediction function
|
37 |
def predict_proba_for_lime(texts):
|
38 |
results = []
|
|
|
33 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
34 |
model.to(device)
|
35 |
|
36 |
+
@st.cache_resource
|
37 |
# LIME prediction function
|
38 |
def predict_proba_for_lime(texts):
|
39 |
results = []
|