mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
0
This commit is contained in:
parent
d93eeb98c8
commit
065023ec05
3 changed files with 5 additions and 2 deletions
|
@ -21,3 +21,4 @@ yamllint==1.29.0
|
||||||
wlc==1.13
|
wlc==1.13
|
||||||
coloredlogs==15.0.1
|
coloredlogs==15.0.1
|
||||||
requests
|
requests
|
||||||
|
markdown
|
||||||
|
|
|
@ -16,4 +16,5 @@ redis==4.5.1
|
||||||
markdown-it-py==2.1.0
|
markdown-it-py==2.1.0
|
||||||
typing_extensions==4.5.0
|
typing_extensions==4.5.0
|
||||||
fasttext-predict==0.9.2.1
|
fasttext-predict==0.9.2.1
|
||||||
requests
|
requests
|
||||||
|
markdown
|
|
@ -14,6 +14,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import base64
|
import base64
|
||||||
import requests
|
import requests
|
||||||
|
import markdown
|
||||||
|
|
||||||
from timeit import default_timer
|
from timeit import default_timer
|
||||||
from html import escape
|
from html import escape
|
||||||
|
@ -742,7 +743,7 @@ def search():
|
||||||
gptbox = {
|
gptbox = {
|
||||||
'infobox': 'GPT3',
|
'infobox': 'GPT3',
|
||||||
'id': 'gpt'+str(len(prompt)),
|
'id': 'gpt'+str(len(prompt)),
|
||||||
'content': gpt,
|
'content': markdown.markdown(re.sub(r'\[\d+\]', r'[^\g<0>]', gpt),extensions=['footnotes']),
|
||||||
}
|
}
|
||||||
result_container.infoboxes.append(gptbox)
|
result_container.infoboxes.append(gptbox)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue