This commit is contained in:
Joseph Cheung 2023-02-19 21:51:59 +08:00
parent d93eeb98c8
commit 065023ec05
3 changed files with 5 additions and 2 deletions

View file

@ -21,3 +21,4 @@ yamllint==1.29.0
wlc==1.13
coloredlogs==15.0.1
requests
markdown

View file

@ -16,4 +16,5 @@ redis==4.5.1
markdown-it-py==2.1.0
typing_extensions==4.5.0
fasttext-predict==0.9.2.1
requests
requests
markdown

View file

@ -14,6 +14,7 @@ import os
import sys
import base64
import requests
import markdown
from timeit import default_timer
from html import escape
@ -742,7 +743,7 @@ def search():
gptbox = {
'infobox': 'GPT3',
'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)