Skip to content

Commit 46027fe

Browse files
Wauplinmishig25
andauthored
Apply suggestions from code review
Co-authored-by: Mishig <[email protected]>
1 parent f416a61 commit 46027fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/tasks/src/snippets/python.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ for chunk in stream:
9090
expect(snippets[0].client).toEqual("huggingface_hub");
9191
expect(snippets[0].content).toEqual(`from huggingface_hub import InferenceClient
9292
client = InferenceClient("black-forest-labs/FLUX.1-schnell", token="api_token")
93+
9394
# output is a PIL.Image object
9495
image = client.text_to_image("Astronaut riding a horse")`);
9596

@@ -105,6 +106,7 @@ def query(payload):
105106
image_bytes = query({
106107
"inputs": "Astronaut riding a horse",
107108
})
109+
108110
# You can access the image with PIL.Image for example
109111
import io
110112
from PIL import Image

0 commit comments

Comments
 (0)