Skip to content

Return file handles if it's a file #67

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

Closed
bfirsh opened this issue Jan 30, 2023 · 1 comment
Closed

Return file handles if it's a file #67

bfirsh opened this issue Jan 30, 2023 · 1 comment

Comments

@bfirsh
Copy link
Member

bfirsh commented Jan 30, 2023

This should work:

import replicate
from urllib.request import urlretrieve
model = replicate.models.get("stability-ai/stable-diffusion")
version = model.versions.get("27b93a2413e7f36cd83da926f3656280b2931564ff050bf9575f1fdf9bcd7478")
out = version.predict(prompt="wavy colorful abstract patterns, cgsociety"
background = Image.open(out)

See #48 #66

@mattt
Copy link
Contributor

mattt commented Sep 16, 2024

This is solved by #348

@mattt mattt closed this as completed Sep 16, 2024
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

3 participants
@mattt @bfirsh and others