model dump

This commit is contained in:
François Pelletier 2023-07-05 01:49:51 -04:00
parent ce43e662de
commit aff029777d

View file

@ -136,7 +136,7 @@ with tab3:
headers = {"Content-Type": "application/json"}
# Send the POST request with the JSON data in the request body
response = requests.get(f"{fabriquedoc_endpoint}/generer/",
json=document_specs.dict(),
json=document_specs.model_dump_json(),
headers=headers)
# Check the response status code
if 200 <= response.status_code <= 299: