Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from diffusers import AutoPipelineForText2Image
|
2 |
+
from diffusers import DiffusionPipeline
|
3 |
+
|
4 |
+
pipe = DiffusionPipeline.from_pretrained("shuttleai/shuttle-3.1-aesthetic",
|
5 |
+
torch_dtype=torch.float16,USE_SAFETENSORS=True).to("cuda")
|
6 |
+
|
7 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
8 |
+
image = pipe(prompt).images[0]
|