KingNish commited on
Commit
714595a
·
verified ·
1 Parent(s): 68c5939

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -152,7 +152,7 @@ def respond(message, history):
152
  gr.Info("Generating Image, Please wait 10 sec...")
153
  client = InferenceClient("stabilityai/stable-diffusion-3-medium-diffusers")
154
  seed = random.randint(0,999999)
155
- image = client.text_to_image(f"{query}{message_text}", negative_prompt=f"{seed}")
156
  generated_images = gr.Image(image)
157
  yield generated_images
158
  gr.Info("We are going to more upgrade image generator in next update")
 
152
  gr.Info("Generating Image, Please wait 10 sec...")
153
  client = InferenceClient("stabilityai/stable-diffusion-3-medium-diffusers")
154
  seed = random.randint(0,999999)
155
+ image = client.text_to_image(f"{str(query)} {message_text}", negative_prompt=f"{seed}")
156
  generated_images = gr.Image(image)
157
  yield generated_images
158
  gr.Info("We are going to more upgrade image generator in next update")