Spaces:
Building
Building
Update app.py
Browse files
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")
|