Authot commited on
Commit
10a6fea
路
verified 路
1 Parent(s): 8dbb9b0

Update secret Token

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,9 +4,9 @@ import requests
4
  import tempfile
5
  import os
6
 
7
- # Remplacez par votre token d'API
8
- API_TOKEN = "API_TOKEN"
9
- API_URL = "https://aura.authot.app/api/v1/punctuates"
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...")