Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ def respond(message, history):
|
|
144 |
query = json_data["arguments"]["query"]
|
145 |
gr.Info("Generating Image, Please wait 10 sec...")
|
146 |
client = InferenceClient("stabilityai/stable-diffusion-3-medium-diffusers")
|
147 |
-
seed = random.randint(0
|
148 |
image = client.text_to_image(message_text, negative_prompt=f"{seed}")
|
149 |
yield gr.Image(image)
|
150 |
gr.Info("We are going to mor upgrade image generator in next update")
|
|
|
144 |
query = json_data["arguments"]["query"]
|
145 |
gr.Info("Generating Image, Please wait 10 sec...")
|
146 |
client = InferenceClient("stabilityai/stable-diffusion-3-medium-diffusers")
|
147 |
+
seed = random.randint(0,999999)
|
148 |
image = client.text_to_image(message_text, negative_prompt=f"{seed}")
|
149 |
yield gr.Image(image)
|
150 |
gr.Info("We are going to mor upgrade image generator in next update")
|