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

default to public model and make deployments opt-in #74

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

zeke
Copy link
Member

@zeke zeke commented Sep 25, 2023

TLDR: Make it possible for anyone to run this app again using a public Scribble model.

Backstory: In #66, I updated the code to make requests to a private Replicate deployment, instead of the publicly accessible ControlNet Scribble model. I made this change to give us more control over scaling behavior of the model and the hardware it uses. The problem is that the new deployment is not publicly accessible, so anyone who cloned this repo and tried to run it encountered an error. This PR fixes that by defaulting to the public model unless an env var is set.

Speaking of that env var, I've added it to the Vercel production app, so this should be ready to go:

Screenshot 2023-09-25 at 2 19 12 PM

Resolves #68

cc @replicate/hackers @replicate/product

@vercel
Copy link

vercel bot commented Sep 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
scribble-diffusion ✅ Ready (Inspect) Visit Preview Sep 25, 2023 9:38pm

@zeke zeke requested review from a team September 25, 2023 21:38
@zeke zeke merged commit 3107992 into main Sep 26, 2023
2 checks passed
@zeke zeke deleted the default-to-public-model-and-make-deployments-opt-in branch September 26, 2023 23:00
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

Successfully merging this pull request may close these issues.

error API request failed: Unprocessable Entity
2 participants