Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
0.6
TFLOPS
1021
18
42
Lucain Pouget
PRO
Wauplin
Follow
revlon-carter's profile picture
idoltw's profile picture
digiplay's profile picture
186 followers
ยท
243 following
Wauplin
Wauplin
lucainpouget
wauplin.hf.co
AI & ML interests
None yet
Recent Activity
updated
a dataset
about 2 hours ago
Wauplin/example-space-to-dataset-json
new
activity
about 7 hours ago
huggingface/HuggingDiscussions:
[FEEDBACK] Follow
reacted
to
not-lain
's
post
with ๐ฅ
3 days ago
ever wondered how you can make an API call to a visual-question-answering model without sending an image url ๐ you can do that by converting your local image to base64 and sending it to the API. recently I made some changes to my library "loadimg" that allows you to make converting images to base64 a breeze. ๐ https://github.com/not-lain/loadimg API request example ๐ ๏ธ: ```python from loadimg import load_img from huggingface_hub import InferenceClient # or load a local image my_b64_img = load_img(imgPath_url_pillow_or_numpy ,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="") ```
View all activity
Organizations
Wauplin
's activity
All
Models
Datasets
Spaces
Papers
Collections
Community
Posts
Upvotes
Likes
Articles
published
an
article
about 1 year ago
view article
Article
TTS Arena: Benchmarking Text-to-Speech Models in the Wild
Feb 27, 2024
โข
56