Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def generate_image(prompt):
|
|
| 51 |
guidance_scale=3.5,
|
| 52 |
num_inference_steps=50,
|
| 53 |
max_sequence_length=512,
|
| 54 |
-
generator=torch.Generator("
|
| 55 |
).images[0]
|
| 56 |
except Exception as e:
|
| 57 |
# Optionally, handle errors (you can also return a default error image)
|
|
|
|
| 51 |
guidance_scale=3.5,
|
| 52 |
num_inference_steps=50,
|
| 53 |
max_sequence_length=512,
|
| 54 |
+
generator=torch.Generator("gpu").manual_seed(0)
|
| 55 |
).images[0]
|
| 56 |
except Exception as e:
|
| 57 |
# Optionally, handle errors (you can also return a default error image)
|