Update webapp.py
This commit is contained in:
parent
bea262f6f5
commit
6068ea6baa
@ -709,7 +709,7 @@ def search():
|
|||||||
if res['content'] == '': continue
|
if res['content'] == '': continue
|
||||||
new_url = 'https://url'+str(len(url_pair))
|
new_url = 'https://url'+str(len(url_pair))
|
||||||
url_pair[new_url] = res['url']
|
url_pair[new_url] = res['url']
|
||||||
tmp_prompt = url_pair +'\n'+ res['url']['title'] +'\n'+ res['url']['content']
|
tmp_prompt = new_url +'\n'+ res['url']['title'] +'\n'+ res['url']['content']
|
||||||
if len(prompt)+len(tmp_prompt)<=1500:
|
if len(prompt)+len(tmp_prompt)<=1500:
|
||||||
prompt += tmp_prompt +'\n'
|
prompt += tmp_prompt +'\n'
|
||||||
if prompt != "":
|
if prompt != "":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user