changer les headers pour generer

This commit is contained in:
François Pelletier 2024-08-24 11:42:43 -04:00
parent c7e193b912
commit e8b82a1f3d

View file

@ -178,7 +178,7 @@ with tab3:
# Send the POST request with the JSON data in the request body
response = requests.post(f"{fabriquedoc_endpoint}/generer/",
json=document_specs.model_dump(),
headers=http_headers)
headers=post_headers)
# Check the response status code
if 200 <= response.status_code <= 299:
# If the request is successful, get the file data from the response