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
2e0801f48b
commit
414d7c905f
1 changed files with 4 additions and 1 deletions
|
@ -741,10 +741,13 @@ def search():
|
||||||
for urls in url_pair.keys():
|
for urls in url_pair.keys():
|
||||||
gpt = gpt.replace(urls,url_pair[urls])
|
gpt = gpt.replace(urls,url_pair[urls])
|
||||||
if gpt and gpt!="":
|
if gpt and gpt!="":
|
||||||
|
gpt = markdown.markdown( re.sub( r'\[(\d+)\](?=[^\^])', r'[^\\1]', gpt) , extensions=['footnotes'])
|
||||||
|
for urls in url_pair.keys():
|
||||||
|
gpt = gpt.replace("#fn:"+urls.replace("https://url",""),url_pair[urls])
|
||||||
gptbox = {
|
gptbox = {
|
||||||
'infobox': 'GPT3',
|
'infobox': 'GPT3',
|
||||||
'id': 'gpt'+str(len(prompt)),
|
'id': 'gpt'+str(len(prompt)),
|
||||||
'content': markdown.markdown( re.sub( r'\[(\d+)\](?=[^\^])', r'[^\\1]', gpt), extensions=['footnotes']),
|
'content': gpt,
|
||||||
}
|
}
|
||||||
result_container.infoboxes.append(gptbox)
|
result_container.infoboxes.append(gptbox)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue