Spaces:
Running
on
Zero
Running
on
Zero
aifeifei798
commited on
Commit
•
f588de8
1
Parent(s):
9310b7d
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from diffusers import DiffusionPipeline
|
|
8 |
dtype = torch.bfloat16
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
|
11 |
-
pipe = DiffusionPipeline.from_pretrained("
|
12 |
|
13 |
MAX_SEED = np.iinfo(np.int32).max
|
14 |
MAX_IMAGE_SIZE = 2048
|
@@ -108,7 +108,7 @@ Shuttle 3.1 Aesthetic is a text-to-image AI model designed to create aesthetic,
|
|
108 |
fn = infer,
|
109 |
inputs = [prompt],
|
110 |
outputs = [result, seed],
|
111 |
-
cache_examples=
|
112 |
)
|
113 |
|
114 |
gr.on(
|
|
|
8 |
dtype = torch.bfloat16
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
|
11 |
+
pipe = DiffusionPipeline.from_pretrained("aifeifei798/DarkIdol-flux-v1", torch_dtype=dtype).to(device)
|
12 |
|
13 |
MAX_SEED = np.iinfo(np.int32).max
|
14 |
MAX_IMAGE_SIZE = 2048
|
|
|
108 |
fn = infer,
|
109 |
inputs = [prompt],
|
110 |
outputs = [result, seed],
|
111 |
+
cache_examples=False
|
112 |
)
|
113 |
|
114 |
gr.on(
|