zeke / github-avatars

A machine learning model to detect whether a GitHub user has a custom or default avatar
https://replicate.com/zeke/github-avatars
13 stars 3 forks source link

This model does not work on Replicate due to old cog #8

Closed bdougie closed 1 year ago

bdougie commented 1 year ago

Hey @zeke, I sent a Twitter DM with some more context yesterday.

I have been exploring Replicate as a potential solution for future features at OpenSauced. I discovered this model on the explore page, but it presents the below error. I am still learning how all this works, but curious if there is an interest in getting to the working example on the site.

Screen Shot 2023-01-04 at 10 43 27 PM

Also, FWIW would be happy to do content around this model and will continue to poke around.

zeke commented 1 year ago

Whoa! @bdougie! Been meaning to reach out to you. Yep I can get this working. Thanks for the shout. Please hold.

zeke commented 1 year ago

I pushed a new version to Replicate using a more recent version of Cog., and it's working again!

{
  "username": "bdougie",
  "href": "https://github.com/bdougie.png",
  "prediction": "custom"
}

https://replicate.com/p/5q6x4z4pkvg5tnmjnhbcg27one

Note: Once it's warmed up, this model doesn't take long to run a prediction, but because it's not a popular model (and therefore not getting much traffic) your first request might take a while.