woodpecker-test #2

Merged
francois merged 4 commits from woodpecker-test into main 2024-02-19 00:25:55 +00:00
Showing only changes of commit f3e725a640 - Show all commits

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