model dump
This commit is contained in:
parent
ce43e662de
commit
aff029777d
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue