From e8b82a1f3dfd2e846e125da1936911a78d7c0278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 24 Aug 2024 11:42:43 -0400 Subject: [PATCH] changer les headers pour generer --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 85e3387..c185bfb 100644 --- a/main.py +++ b/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