This commit is contained in:
eric
2023-05-05 17:26:05 +08:00
parent 689ced2212
commit 8d62e9789a

6
app.py
View File

@@ -9,6 +9,7 @@ import os
from fastapi.responses import JSONResponse
import asyncio
from pydantic import BaseModel
import time
app = FastAPI()
@@ -216,12 +217,13 @@ async def getphonenum(
@app.post("/callback")
# def read_root():
# return {"Hello": "World"}
def callback(item: Item):
async def callback(item: Item):
await time.sleep(10)
print("item", item)
content = {
"ans_node_name": "小微闲聊",
"title": "小薇兄你好",
"answer": "你好呀!",
"answer": "你好呀123",
"answer_type": "text",
"bid_stat": {
"curr_time": "20190515-18:07:37",