Spaces:
Runtime error
Runtime error
Update app.py
Browse files9 unmodified lines10111213131415169 unmodified lines
def get_instantID(portrait_in, condition_pose, prompt, style): client = Client("https://fffiloni-instantid.hf.space/", hf_token=hf_token) negative_prompt = "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green" negative_prompt = "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed, monochrome, gun, weapon" result = client.predict( portrait_in, # filepath in 'Upload a photo of your face' Image component condition_pose, # filepath in 'Upload a reference pose image (optional)' Image componentapp.py+1-1