Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ import numpy as np
|
|
18 |
import torch
|
19 |
import argparse
|
20 |
import random
|
21 |
-
|
22 |
from PIL import Image
|
23 |
|
24 |
MAX_SEED = np.iinfo(np.int32).max
|
@@ -41,7 +41,7 @@ if args.enable_model_cpu_offload:
|
|
41 |
else:
|
42 |
pipe = pipe.to("cuda")
|
43 |
|
44 |
-
|
45 |
def infer(edit_images,
|
46 |
prompt,
|
47 |
seed=666,
|
|
|
18 |
import torch
|
19 |
import argparse
|
20 |
import random
|
21 |
+
import spaces
|
22 |
from PIL import Image
|
23 |
|
24 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
41 |
else:
|
42 |
pipe = pipe.to("cuda")
|
43 |
|
44 |
+
@spaces.GPU
|
45 |
def infer(edit_images,
|
46 |
prompt,
|
47 |
seed=666,
|