benfls commited on
Commit
e668f21
·
1 Parent(s): 241636f

modif variable env

Browse files
Files changed (2) hide show
  1. config.py +1 -1
  2. test.py +4 -0
config.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  from dotenv import load_dotenv
3
 
4
  # Charger les variables d'environnement
5
- load_dotenv()
6
 
7
  # Configuration de l'API
8
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
2
  from dotenv import load_dotenv
3
 
4
  # Charger les variables d'environnement
5
+ load_dotenv(dotenv_path=".env")
6
 
7
  # Configuration de l'API
8
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
test.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from config import HUGGINGFACE_API_KEY
2
+
3
+ print("Token récupéré :", HUGGINGFACE_API_KEY)
4
+