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
c1ebd034a1
commit
9e19d0f688
1 changed files with 2 additions and 2 deletions
|
@ -737,8 +737,8 @@ def search():
|
|||
gpt_json = gpt_response.json()
|
||||
if 'choices' in gpt_json:
|
||||
gpt = gpt_json['choices'][0]['text']
|
||||
for urls in url_pair:
|
||||
gpt.replace(urls.key,urls[urls.key])
|
||||
for urls in url_pair.keys():
|
||||
gpt.replace(urls,url_pair[urls])
|
||||
if gpt and gpt!="":
|
||||
gptbox = {
|
||||
'infobox': 'New Search',
|
||||
|
|
Loading…
Add table
Reference in a new issue