FremyCompany commited on
Commit
5e9a806
·
verified ·
1 Parent(s): 5932caf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -50,7 +50,7 @@ else:
50
 
51
 
52
  # Display the mapping between the two sentences
53
- DEBUG = True
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.cache_resource
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 = []