I am executing the following post:
response = requests.post(url=f'{os.environ["BASE_URL"]}/submit', files={'file': (file.filename, file.file)}, data = {'query': 'John Doe','model': '90.5'})
and in the other side I have the following endpoint:
class SubmitRequest(BaseModel): query: str model: str@app.post("/submit")async def submit( query: str = Form(...), model: str = Form(...), files: UploadFile = File(...)): log.info("hello")
It retrieves a 422 Entity error, what am I doing wrong? Thank you