shibing624 commited on
Commit
c65738a
·
verified ·
1 Parent(s): a384298

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -20,11 +20,6 @@ sim_model.add_corpus(load_file('corpus.txt'))
20
 
21
  def ai_text(query):
22
  res = sim_model.most_similar(queries=query, topn=5)
23
- print(res)
24
- for q_id, c in enumerate(res):
25
- print('query:', sentences[q_id])
26
- print("search top 3:")
27
- print(f'\t{c}')
28
 
29
  res_show = str(res)
30
  return res_show
 
20
 
21
  def ai_text(query):
22
  res = sim_model.most_similar(queries=query, topn=5)
 
 
 
 
 
23
 
24
  res_show = str(res)
25
  return res_show