FremyCompany
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ else:
|
|
50 |
|
51 |
|
52 |
# Display the mapping between the two sentences
|
53 |
-
DEBUG =
|
54 |
if DEBUG:
|
55 |
|
56 |
# Use some dummy data
|
@@ -81,8 +81,7 @@ else:
|
|
81 |
|
82 |
model, tokenizer = load_model_and_tokenizer()
|
83 |
|
84 |
-
@st.
|
85 |
-
@lru_cache(maxsize=128)
|
86 |
def encode_sentences(sent0, sent1):
|
87 |
sentences = [sent0, sent1]
|
88 |
tokens = []
|
|
|
50 |
|
51 |
|
52 |
# Display the mapping between the two sentences
|
53 |
+
DEBUG = False
|
54 |
if DEBUG:
|
55 |
|
56 |
# Use some dummy data
|
|
|
81 |
|
82 |
model, tokenizer = load_model_and_tokenizer()
|
83 |
|
84 |
+
@st.cache_data
|
|
|
85 |
def encode_sentences(sent0, sent1):
|
86 |
sentences = [sent0, sent1]
|
87 |
tokens = []
|