changer les headers pour generer
This commit is contained in:
parent
c7e193b912
commit
e8b82a1f3d
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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
|
||||
|
|
Reference in a new issue