Flo161 commited on
Commit
0340db6
·
1 Parent(s): 13a9e5a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from diffusers import DiffusionPipeline
2
+ import torch
3
+ import streamlit as st
4
+
5
+ pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
6
+ pipeline.to("cuda")
7
+ pipeline("An image of a squirrel in Picasso style").images[0]