Spaces:
Runtime error
Runtime error
désactivation
Browse files- count_authors.py +9 -4
count_authors.py
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
#Count_authors serait à l'origine d'un runtime error de Fraudscore, apparu spontanément le 15 juin 2025
|
|
|
|
|
|
|
|
|
|
|
2 |
#or ce module n'est pas utile pour FraudScore
|
3 |
-
#il est désactivé par
|
4 |
|
5 |
import tqdm
|
6 |
from multiprocessing import Pool, cpu_count
|
@@ -11,9 +16,9 @@ import time
|
|
11 |
from flickrapi import FlickrAPI
|
12 |
|
13 |
# Add Flickr configuration
|
14 |
-
FLICKR_API_KEY = '80ef21a6f7eb0984ea613c316a89ca69'
|
15 |
-
FLICKR_API_SECRET = '4d0e8ce6734f4b3f'
|
16 |
-
flickr = FlickrAPI(FLICKR_API_KEY, FLICKR_API_SECRET, format='parsed-json', store_token=False)
|
17 |
|
18 |
def get_photo_id(url):
|
19 |
"""Extract photo ID from Flickr URL"""
|
|
|
1 |
#Count_authors serait à l'origine d'un runtime error de Fraudscore, apparu spontanément le 15 juin 2025
|
2 |
+
#HuggingFace envoie le message:
|
3 |
+
# "We have detected the following secret in spaces/TheFrenchDemos/FraudScore at the revision fd81b6050a663bae8e3ce6975c22635eb665c8dd.
|
4 |
+
# "Flickr (status: active) in count_authors.py
|
5 |
+
# "We strongly advise you rotate this secret, in particular if your repository is public.
|
6 |
+
# "Read more about our Secret scanning feature: https://huggingface.co/docs/hub/en/security-secrets
|
7 |
#or ce module n'est pas utile pour FraudScore
|
8 |
+
#il est désactivé par la mise en commentaire des lignes 89, 19 à 21
|
9 |
|
10 |
import tqdm
|
11 |
from multiprocessing import Pool, cpu_count
|
|
|
16 |
from flickrapi import FlickrAPI
|
17 |
|
18 |
# Add Flickr configuration
|
19 |
+
#FLICKR_API_KEY = '80ef21a6f7eb0984ea613c316a89ca69'
|
20 |
+
#FLICKR_API_SECRET = '4d0e8ce6734f4b3f'
|
21 |
+
#flickr = FlickrAPI(FLICKR_API_KEY, FLICKR_API_SECRET, format='parsed-json', store_token=False)
|
22 |
|
23 |
def get_photo_id(url):
|
24 |
"""Extract photo ID from Flickr URL"""
|