Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from datetime import datetime
|
|
8 |
import os
|
9 |
import json
|
10 |
import logging
|
|
|
11 |
|
12 |
# --- Imports spécifiques pour l'AgentResearcher ---
|
13 |
import requests
|
@@ -15,6 +16,8 @@ from bs4 import BeautifulSoup
|
|
15 |
import logging
|
16 |
from concurrent.futures import ThreadPoolExecutor
|
17 |
|
|
|
|
|
18 |
# === Configuration du logger ===
|
19 |
logging.basicConfig(
|
20 |
level=logging.INFO,
|
|
|
8 |
import os
|
9 |
import json
|
10 |
import logging
|
11 |
+
from huggingface_hub import login
|
12 |
|
13 |
# --- Imports spécifiques pour l'AgentResearcher ---
|
14 |
import requests
|
|
|
16 |
import logging
|
17 |
from concurrent.futures import ThreadPoolExecutor
|
18 |
|
19 |
+
login(token=os.environ["HF_TOKEN"])
|
20 |
+
|
21 |
# === Configuration du logger ===
|
22 |
logging.basicConfig(
|
23 |
level=logging.INFO,
|