Spaces:
Sleeping
Sleeping
nroggendorff
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
-
import spaces
|
3 |
from diffusers import DiffusionPipeline
|
4 |
|
5 |
-
@spaces.GPU
|
6 |
def generate_image(steps):
|
7 |
pipeline = DiffusionPipeline.from_pretrained("nroggendorff/obama", use_safetensors=True)
|
8 |
pipe = pipeline.to("cuda")
|
|
|
1 |
import gradio as gr
|
|
|
2 |
from diffusers import DiffusionPipeline
|
3 |
|
|
|
4 |
def generate_image(steps):
|
5 |
pipeline = DiffusionPipeline.from_pretrained("nroggendorff/obama", use_safetensors=True)
|
6 |
pipe = pipeline.to("cuda")
|