mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update webapp.py
This commit is contained in:
parent
08e9ea694b
commit
1101fd1c59
1 changed files with 4 additions and 1 deletions
|
@ -719,7 +719,10 @@ def search():
|
|||
gpt_json = gpt_response.json()
|
||||
if 'choices' in gpt_json:
|
||||
gpt = gpt_json['choices'][0]['text']
|
||||
gpt = gpt.replace("\n","").replace("\"","").replace("\'","")
|
||||
for word in gpt.split('\n'):
|
||||
if word != "":
|
||||
gpt = word
|
||||
break
|
||||
if gpt!="":
|
||||
search_query.query = gpt
|
||||
search = SearchWithPlugins(search_query, request.user_plugins, request) # pylint: disable=redefined-outer-name
|
||||
|
|
Loading…
Add table
Reference in a new issue