Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hf_search_models() seems broken #47

Open
samterfa opened this issue Jan 8, 2023 · 1 comment
Open

hf_search_models() seems broken #47

samterfa opened this issue Jan 8, 2023 · 1 comment

Comments

@samterfa
Copy link
Collaborator

samterfa commented Jan 8, 2023

huggingfaceR:::hf_search_models("facebook")

results in Cannot convert object to an environment: [type=list; target=ENVSXP].
while

reticulate::py$hf_api$list_models(filter = reticulate::py$ModelFilter(author = "facebook"))

behaves as expected. It looks like reticulate::iterate is being used on a list which doesn't work.

@jpcompartir
Copy link
Collaborator

Seems to be working again

hf_search_models(author = "facebook")

# A tibble: 497 × 13
   author   config downl…¹ id    lastM…² libra…³ likes modelId pipel…⁴ private secur…⁵ sha   tags 
   <chr>    <lgl>    <int> <chr> <chr>   <chr>   <int> <chr>   <chr>   <lgl>   <lgl>   <chr> <lis>
 1 facebook NA      922190 face… 2022-1… transf…    53 facebo… featur… FALSE   NA      aadd… <chr>
 2 facebook NA     1276466 face… 2022-1… transf…   233 facebo… summar… FALSE   NA      45b6… <chr>
 3 facebook NA     1211169 face… 2022-1… transf…   289 facebo… zero-s… FALSE   NA      9fc9… <chr>
 4 facebook NA       24572 face… 2022-0… transf…    14 facebo… summar… FALSE   NA      2593… <chr>
 5 facebook NA     1141386 face… 2022-0… transf…    25 facebo… featur… FALSE   NA      cb48… <chr>
 6 facebook NA        2023 face… 2021-0… transf…    14 facebo… conver… FALSE   NA      a10c… <chr>
 7 facebook NA       20091 face… 2021-0… transf…    46 facebo… conver… FALSE   NA      c468… <chr>
 8 facebook NA       34055 face… 2022-0… transf…   104 facebo… conver… FALSE   NA      a208… <chr>
 9 facebook NA        4520 face… 2021-0… transf…     0 facebo… conver… FALSE   NA      3e53… <chr>
10 facebook NA       30025 face… 2021-1… transf…    16 facebo… conver… FALSE   NA      a2a2… <chr>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants