Spaces:
Runtime error
Runtime error
vkthakur88
commited on
Commit
•
94e8356
1
Parent(s):
8b051c8
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ client = hf_hub.InferenceClient(token = os.environ['HF_TOKEN'])
|
|
7 |
def image_interface(prompt, neg_prompt, guidance_scale):
|
8 |
response = client.text_to_image(
|
9 |
prompt = f'concept art of {prompt}, crisp hand, fair skinned, fantasy art, oil painting, a detailed painting, a beautiful artwork illustration, inspired by Raja Ravi Varma, trending on cg society, ancient indian theme.',
|
10 |
-
negative_prompt = f'duplicate,
|
11 |
model = 'stabilityai/stable-diffusion-xl-base-1.0',
|
12 |
guidance_scale = guidance_scale,
|
13 |
num_inference_steps = 50,
|
|
|
7 |
def image_interface(prompt, neg_prompt, guidance_scale):
|
8 |
response = client.text_to_image(
|
9 |
prompt = f'concept art of {prompt}, crisp hand, fair skinned, fantasy art, oil painting, a detailed painting, a beautiful artwork illustration, inspired by Raja Ravi Varma, trending on cg society, ancient indian theme.',
|
10 |
+
negative_prompt = f'duplicate, fake, unrealistic, dark skinned, beard, moustache, photograph, ugly, old, bad anatomy, bad hands, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, worst face, three crus, extra crus, fused crus, worst feet, three feet, fused feet, fused thigh, three thigh, fused thigh, extra thigh, worst thigh, missing fingers, extra fingers, ugly fingers, long fingers, horn, extra eyes, huge eyes, 2girl, amputation, disconnected limbs, {neg_prompt}',
|
11 |
model = 'stabilityai/stable-diffusion-xl-base-1.0',
|
12 |
guidance_scale = guidance_scale,
|
13 |
num_inference_steps = 50,
|