From a970fd7d248ea15845825781d476a866e25796e7 Mon Sep 17 00:00:00 2001 From: Francois Pelletier Date: Mon, 19 Feb 2024 00:17:44 +0000 Subject: [PATCH] Actualiser main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index ff39666..60c9450 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ import streamlit.components.v1 as components def correct_text(text): url = f"{settings.BACKEND_URL}/corriger" - response = requests.get(url, json={"text": text}) + response = requests.post(url, json={"text": text}) if response.status_code != 200: st.error("Erreur lors de la requĂȘte au serveur: {response.status_code}") return ""