xulh commited on
Commit
587f672
·
1 Parent(s): 9e873a1

代码初始化

Browse files
Files changed (1) hide show
  1. inference/inference.py +1 -1
inference/inference.py CHANGED
@@ -17,6 +17,6 @@ async def api_inference(
17
  response = requests.post(
18
  API_URL,
19
  headers=headers,
20
- json=item
21
  )
22
  return response.json()
 
17
  response = requests.post(
18
  API_URL,
19
  headers=headers,
20
+ json=item.dict()
21
  )
22
  return response.json()