Update webapp.py

This commit is contained in:
Joseph Cheung 2023-02-20 19:14:08 +08:00
parent 0bd423fc27
commit c6742fbf22

View file

@ -721,7 +721,7 @@ def search():
gpt = gpt_json['choices'][0]['text'] gpt = gpt_json['choices'][0]['text']
for word in gpt.split('\n'): for word in gpt.split('\n'):
if word != "": if word != "":
gpt = word gpt = word.replace("\"","").replace("\'","").replace("","").replace("","").replace("","").replace("","")
break break
if gpt!="": if gpt!="":
search_query.query = gpt search_query.query = gpt