c
This commit is contained in:
parent
4057e708cb
commit
2f01d96d4e
@ -726,6 +726,7 @@ def search():
|
|||||||
gpt_json = gpt_response.json()
|
gpt_json = gpt_response.json()
|
||||||
if 'choices' in gpt_json:
|
if 'choices' in gpt_json:
|
||||||
gpt = gpt_json['choices'][0]['text']
|
gpt = gpt_json['choices'][0]['text']
|
||||||
|
gpt = gpt.replace("查看食谱","搜索食谱")
|
||||||
gpt_judge = []
|
gpt_judge = []
|
||||||
for tmpj in gpt.split():
|
for tmpj in gpt.split():
|
||||||
try:
|
try:
|
||||||
|
@ -726,6 +726,7 @@ def search():
|
|||||||
gpt_json = gpt_response.json()
|
gpt_json = gpt_response.json()
|
||||||
if 'choices' in gpt_json:
|
if 'choices' in gpt_json:
|
||||||
gpt = gpt_json['choices'][0]['text']
|
gpt = gpt_json['choices'][0]['text']
|
||||||
|
gpt = gpt.replace("查看食谱","搜索食谱")
|
||||||
gpt_judge = []
|
gpt_judge = []
|
||||||
for tmpj in gpt.split():
|
for tmpj in gpt.split():
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user