Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
-
from diffusers import
|
3 |
import torch
|
4 |
|
5 |
|
6 |
-
pipe =
|
7 |
|
8 |
|
9 |
def infer(prompt):
|
|
|
1 |
import gradio as gr
|
2 |
+
from diffusers import StableDiffusionPipeline
|
3 |
import torch
|
4 |
|
5 |
|
6 |
+
pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float32)
|
7 |
|
8 |
|
9 |
def infer(prompt):
|