Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ from diffusers import DiffusionPipeline
|
|
4 |
from PIL import Image, ImageDraw, ImageFont
|
5 |
|
6 |
# Load the model
|
7 |
-
model = DiffusionPipeline.from_pretrained("ginipick/flux-lora-eric-cat", torch_dtype=torch.
|
8 |
-
|
9 |
|
10 |
def generate_image(caption):
|
11 |
# Generate the image from the caption
|
|
|
4 |
from PIL import Image, ImageDraw, ImageFont
|
5 |
|
6 |
# Load the model
|
7 |
+
model = DiffusionPipeline.from_pretrained("ginipick/flux-lora-eric-cat", torch_dtype=torch.float32)
|
8 |
+
# No need to move the model to GPU since we're using CPU
|
9 |
|
10 |
def generate_image(caption):
|
11 |
# Generate the image from the caption
|