From 16f169ce8af1e4d75f6ada4fa2e4dd2a0f0efdbe Mon Sep 17 00:00:00 2001 From: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:23:30 +0200 Subject: [PATCH 1/2] Update endpoint.py --- services/api/src/api/routes/endpoint.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/api/src/api/routes/endpoint.py b/services/api/src/api/routes/endpoint.py index 2c444cfad..a9d5d8878 100644 --- a/services/api/src/api/routes/endpoint.py +++ b/services/api/src/api/routes/endpoint.py @@ -64,12 +64,12 @@ class OptInOutUrlsCountResponse(TypedDict): # TODO: remove once full scan is implemented for spawning urls scan HARD_CODED_OPT_IN_OUT_URLS = { - "laion/laion2B-en": OptInOutUrlsCountResponse( + "laion/relaion2B-en-research-safe": OptInOutUrlsCountResponse( urls_columns=["URL"], - num_opt_in_urls=5, - num_opt_out_urls=42785281, - num_urls=2322161807, - num_scanned_rows=0, # It is unknown but leaving with 0 for now since UI validates non null + num_opt_in_urls=16, + num_opt_out_urls=43913814, + num_urls=2097653553, + num_scanned_rows=2097693557, # It is unknown but leaving with 0 for now since UI validates non null has_urls_columns=True, full_scan=True, ), From 80f94f6751d2d3e77097523f23490bd6f02c4211 Mon Sep 17 00:00:00 2001 From: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:24:16 +0200 Subject: [PATCH 2/2] Update endpoint.py --- services/api/src/api/routes/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/src/api/routes/endpoint.py b/services/api/src/api/routes/endpoint.py index a9d5d8878..66a8b6774 100644 --- a/services/api/src/api/routes/endpoint.py +++ b/services/api/src/api/routes/endpoint.py @@ -69,7 +69,7 @@ class OptInOutUrlsCountResponse(TypedDict): num_opt_in_urls=16, num_opt_out_urls=43913814, num_urls=2097653553, - num_scanned_rows=2097693557, # It is unknown but leaving with 0 for now since UI validates non null + num_scanned_rows=2097693557, has_urls_columns=True, full_scan=True, ),