Spaces:
Runtime error
Runtime error
shibing624
commited on
Update app.py
Browse files
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
|