Spaces:
Runtime error
Runtime error
Jordan Legg
commited on
Commit
Β·
fd56722
1
Parent(s):
e6d3c53
fix syntax
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import spaces
|
|
| 5 |
import torch
|
| 6 |
from PIL import Image
|
| 7 |
from torchvision import transforms
|
| 8 |
-
from diffusers import DiffusionPipeline
|
| 9 |
|
| 10 |
# Define constants
|
| 11 |
dtype = torch.bfloat16
|
|
@@ -122,6 +122,7 @@ def infer(prompt, init_image=None, seed=42, randomize_seed=False, width=1024, he
|
|
| 122 |
|
| 123 |
|
| 124 |
|
|
|
|
| 125 |
# Define example prompts
|
| 126 |
examples = [
|
| 127 |
"a tiny astronaut hatching from an egg on the moon",
|
|
|
|
| 5 |
import torch
|
| 6 |
from PIL import Image
|
| 7 |
from torchvision import transforms
|
| 8 |
+
from diffusers import DiffusionPipeline
|
| 9 |
|
| 10 |
# Define constants
|
| 11 |
dtype = torch.bfloat16
|
|
|
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
+
|
| 126 |
# Define example prompts
|
| 127 |
examples = [
|
| 128 |
"a tiny astronaut hatching from an egg on the moon",
|