sibthinon commited on
Commit
f160890
·
verified ·
1 Parent(s): 92a7e49

edit load pickle

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ model_config = {
42
  latest_query_result = {"query": "", "result": "", "model": ""}
43
 
44
  symspell = SymSpell(max_dictionary_edit_distance=2)
45
- symspell.load_pickle("symspell_fast.pkl", term_index=0, count_index=1)
46
 
47
  # แก้คำผิด
48
  def correct_query_with_symspell(query: str) -> str:
 
42
  latest_query_result = {"query": "", "result": "", "model": ""}
43
 
44
  symspell = SymSpell(max_dictionary_edit_distance=2)
45
+ symspell.load_pickle("symspell_fast.pkl")
46
 
47
  # แก้คำผิด
48
  def correct_query_with_symspell(query: str) -> str: