Update webapp.py
This commit is contained in:
parent
2ba967f1c0
commit
3a423887c9
@ -746,6 +746,7 @@ def search():
|
|||||||
number_of_results = 0
|
number_of_results = 0
|
||||||
|
|
||||||
# OPENAI GPT
|
# OPENAI GPT
|
||||||
|
try:
|
||||||
url_pair = {}
|
url_pair = {}
|
||||||
prompt = ""
|
prompt = ""
|
||||||
for res in results:
|
for res in results:
|
||||||
@ -847,6 +848,8 @@ def search():
|
|||||||
'content': gpt,
|
'content': gpt,
|
||||||
}
|
}
|
||||||
result_container.infoboxes.append(gptbox)
|
result_container.infoboxes.append(gptbox)
|
||||||
|
except Exception as ee:
|
||||||
|
logger.exception(ee, exc_info=True)
|
||||||
|
|
||||||
|
|
||||||
# checkin for a external bang
|
# checkin for a external bang
|
||||||
|
Loading…
x
Reference in New Issue
Block a user