Actualiser main.py

This commit is contained in:
Francois Pelletier 2024-02-19 00:17:44 +00:00
parent 514e8a3abe
commit a970fd7d24

View file

@ -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 ""