Updated output content

This commit is contained in:
mxr612 2024-08-21 18:16:00 +08:00
parent a4b1c79cde
commit bf57208e36

View File

@ -30,6 +30,7 @@ def query(query:str):
@app.get("/fastdoi")
async def get_reference(questions):
print('Search: '+questions)
res = query(questions)
new = []
for i in res:
@ -38,7 +39,7 @@ async def get_reference(questions):
if(upload2fastgpt(new)):
for i in new:
mysql_connector.new_load(i['id'])
print('new: '+i['q'])
print('New: '+i['q'])
return new
if __name__ == '__main__':