Nithish310 commited on
Commit
461252c
1 Parent(s): b70feb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -178,9 +178,9 @@ def respond(message, history):
178
  gr.Info("Generating Image, Please wait 10 sec...")
179
  yield "Generating Image, Please wait 10 sec..."
180
  try:
181
- client_sd3 = InferenceClient("stabilityai/stable-diffusion-3-medium-diffusers")
182
  seed = random.randint(0, 999999)
183
- negativeprompt = ""
184
  image = client_sd3.text_to_image(query, negative_prompt=f"{seed},{negativeprompt}")
185
  yield gr.Image(image)
186
  except:
 
178
  gr.Info("Generating Image, Please wait 10 sec...")
179
  yield "Generating Image, Please wait 10 sec..."
180
  try:
181
+ client_sd3 = InferenceClient("black-forest-labs/FLUX.1-dev")
182
  seed = random.randint(0, 999999)
183
+ negativeprompt = "blurry, low resolution, distorted faces, extra limbs, unnatural colors, harsh lighting, overexposed, underexposed, crowded background, text, logos, artifacts, low detail, bad anatomy, inaccurate proportions, pixelated."
184
  image = client_sd3.text_to_image(query, negative_prompt=f"{seed},{negativeprompt}")
185
  yield gr.Image(image)
186
  except: