Skip to content

Releases: not-lain/loadimg

v0.3.3

10 Nov 18:10
276bd2d
Compare
Choose a tag to compare

Loadimg 0.3.3

What's Changed

  • update base64 implementation to support huggingface inference by @not-lain in #13

this will support sending images to huggingface inference API as base64

from loadimg import load_img
from huggingface_hub import InferenceClient

# or load a local image
my_b64_img = load_img("https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg", output_type="base64" ) 

client = InferenceClient(api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

messages = [
	{
		"role": "user",
		"content": [
			{
				"type": "text",
				"text": "Describe this image in one sentence."
			},
			{
				"type": "image_url",
				"image_url": {
					"url": my_b64_img # base64 allows using images without uploading them to the web
				}
			}
		]
	}
]

stream = client.chat.completions.create(
    model="meta-llama/Llama-3.2-11B-Vision-Instruct", 
	messages=messages, 
	max_tokens=500,
	stream=True
)

for chunk in stream:
    print(chunk.choices[0].delta.content, end="")

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

Full Changelog: v0.3.2...v0.3.3

v0.3.2

12 Oct 20:12
Compare
Choose a tag to compare

Loadimg 0.3.2

What's Changed

  • fix huggingface file download

Full Changelog: v0.3.1...v0.3.2

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

0.3.1

08 Sep 18:43
11c8b20
Compare
Choose a tag to compare

Loadimg 0.3.1

What's Changed

New Contributors

Full Changelog: v0.3.0...v0.3.1

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

v0.3.0

01 Sep 16:23
Compare
Choose a tag to compare

Loadimg 0.3.0

What's Changed

  • Added option to select Image input_type and also made Base64 image support better. by @KingNish24 in #8

New Contributors

Full Changelog: v0.2.1...v0.3.0

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

v0.2.1

30 Aug 19:52
Compare
Choose a tag to compare

πŸ› οΈHotfix for the version parameter

v0.2.0

30 Aug 19:22
Compare
Choose a tag to compare

Loadimg 0.2.0

What's Changed

New Contributors

I am also glad to announce that we have reached 100,000 downloads πŸ₯³

image

Full Changelog: v0.1.2...v0.2.0

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

v0.1.2

07 Apr 13:20
Compare
Choose a tag to compare

Loadimg from πŸ€—

for now we are just replacing /blob/ with /resolve/ but it should cover up most use cases

Full Changelog: v0.1.1...v0.1.2

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

v0.1.1

06 Apr 07:34
Compare
Choose a tag to compare

Loadimg minor fixes for saving a pillow image

Full Changelog: v0.1.0...v0.1.1

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

v0.1.0

06 Apr 06:58
Compare
Choose a tag to compare

LOADIMG WITH OUTPUT TYPE

it's loadimg nicely 😎
now you can control the output_type when you are loadimg your images
currently supported output_types ["pil","numpy","str"]

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘

v0.0.3

26 Mar 03:51
Compare
Choose a tag to compare

LOADIMG FROM PIP

it's loadimg nicely 😎
updated README and fixed link for readme image
now everyone visiting pypi should see the loadimg image.
to download the package all you have to do is

pip install loadimg

LOADIMG FUTURE RELEASES β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘