vkthakur88 commited on
Commit
08d7807
·
1 Parent(s): de0dea9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -7,11 +7,13 @@ client = hf_hub.InferenceClient(token = os.environ['HF_TOKEN'])
7
  def image_interface(prompt):
8
  response = client.text_to_image(
9
  prompt = f'fantasy art, oil painting, in raja ravi verma style, ancient indian theme, painting of {prompt}.',
10
- negative_prompt = 'duplicate, photograph, ugly, 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',
11
- model = 'stabilityai/stable-diffusion-xl-base-1.0'
 
 
12
  )
13
 
14
- return response
15
 
16
  app = gr.Interface(fn = image_interface, inputs = 'text', outputs = 'image', title = 'Oil Painting Generation')
17
 
 
7
  def image_interface(prompt):
8
  response = client.text_to_image(
9
  prompt = f'fantasy art, oil painting, in raja ravi verma style, ancient indian theme, painting of {prompt}.',
10
+ negative_prompt = 'duplicate, 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',
11
+ model = 'stabilityai/stable-diffusion-xl-base-1.0',
12
+ guidance_scale = 10,
13
+ num_inference_steps = 75
14
  )
15
 
16
+ return response
17
 
18
  app = gr.Interface(fn = image_interface, inputs = 'text', outputs = 'image', title = 'Oil Painting Generation')
19