Skip to content

Create devcontainer.json#307

Open
leegizmoliles-hash wants to merge 1 commit intoTencent-Hunyuan:mainfrom
leegizmoliles-hash:patch-2
Open

Create devcontainer.json#307
leegizmoliles-hash wants to merge 1 commit intoTencent-Hunyuan:mainfrom
leegizmoliles-hash:patch-2

Conversation

@leegizmoliles-hash
Copy link
Copy Markdown

import os
from huggingface_hub import InferenceClient

client = InferenceClient(
provider="auto",
api_key=os.environ["HF_TOKEN"],
)

with open("cat.png", "rb") as image_file:
input_image = image_file.read()

output is a PIL.Image object

image = client.image_to_image(
input_image,
prompt="Turn the cat into a tiger.",
model="black-forest-labs/FLUX.2-dev",
)

@tencent-adm
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants