Spaces:
Running
Running
Update secret Token
Browse files
app.py
CHANGED
|
@@ -4,9 +4,9 @@ import requests
|
|
| 4 |
import tempfile
|
| 5 |
import os
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
API_TOKEN = "API_TOKEN"
|
| 9 |
-
API_URL = "https://aura.authot.app/
|
| 10 |
|
| 11 |
def submit_punctuation_task(text, lang="fr"):
|
| 12 |
print("Cr茅ation d'un fichier temporaire pour le texte...")
|
|
|
|
| 4 |
import tempfile
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
# R茅cup茅rer le token d'API depuis une variable d'environnement
|
| 8 |
+
API_TOKEN = os.getenv("API_TOKEN")
|
| 9 |
+
API_URL = "https://aura.authot.app/punctuates"
|
| 10 |
|
| 11 |
def submit_punctuation_task(text, lang="fr"):
|
| 12 |
print("Cr茅ation d'un fichier temporaire pour le texte...")
|