modif variable env
Browse files
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 |
+
|