Updated output content
This commit is contained in:
parent
a4b1c79cde
commit
bf57208e36
3
main.py
3
main.py
@ -30,6 +30,7 @@ def query(query:str):
|
|||||||
|
|
||||||
@app.get("/fastdoi")
|
@app.get("/fastdoi")
|
||||||
async def get_reference(questions):
|
async def get_reference(questions):
|
||||||
|
print('Search: '+questions)
|
||||||
res = query(questions)
|
res = query(questions)
|
||||||
new = []
|
new = []
|
||||||
for i in res:
|
for i in res:
|
||||||
@ -38,7 +39,7 @@ async def get_reference(questions):
|
|||||||
if(upload2fastgpt(new)):
|
if(upload2fastgpt(new)):
|
||||||
for i in new:
|
for i in new:
|
||||||
mysql_connector.new_load(i['id'])
|
mysql_connector.new_load(i['id'])
|
||||||
print('new: '+i['q'])
|
print('New: '+i['q'])
|
||||||
return new
|
return new
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user