Commit
·
c240b4b
1
Parent(s):
460e2cc
bugfix (shuffle doesnt return anything)
Browse files- resources.py +3 -1
resources.py
CHANGED
|
@@ -13,7 +13,9 @@ def load_variables():
|
|
| 13 |
@st.cache_data
|
| 14 |
def load_sentences():
|
| 15 |
with open("sentences.pt", 'rb') as f:
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
| 18 |
@st.cache_resource
|
| 19 |
def load_model(model):
|
|
|
|
| 13 |
@st.cache_data
|
| 14 |
def load_sentences():
|
| 15 |
with open("sentences.pt", 'rb') as f:
|
| 16 |
+
x = torch.load(f)
|
| 17 |
+
shuffle(x)
|
| 18 |
+
return x
|
| 19 |
|
| 20 |
@st.cache_resource
|
| 21 |
def load_model(model):
|