Merge pull request 'Actualiser main.py' (#1) from main into woodpecker-test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #1
This commit is contained in:
commit
f3e725a640
1 changed files with 1 additions and 1 deletions
2
main.py
2
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 ""
|
||||
|
|
Loading…
Reference in a new issue