from huggingface_hub import InferenceClient from dotenv import load_dotenv import os load_dotenv() client = InferenceClient( provider="hf-inference", api_key=os.getenv("TOKEN"), ) output = client.image_segmentation( "https://s1.ppllstatics.com/mujerhoy/www/multimedia/202306/02/media/cortadas/cara-sin-maquillaje-kWXF-U200460822514lOI-1248x1248@MujerHoy.jpg", model="jonathandinu/face-parsing" ) print(output)