aksrad commited on
Commit
292fc95
·
verified ·
1 Parent(s): 41ed49e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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]