Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
fba6ac5
1
Parent(s):
d6a75b9
Change gpu number for zero gpu spaces
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def update_default_concepts(prompt):
|
|
21 |
|
22 |
return gr.update(value=default_concepts.get(prompt, []))
|
23 |
|
24 |
-
pipeline = ConceptAttentionFluxPipeline(model_name="flux-schnell", device="cuda
|
25 |
|
26 |
def convert_pil_to_bytes(img):
|
27 |
img = img.resize((IMG_SIZE, IMG_SIZE), resample=Image.NEAREST)
|
|
|
21 |
|
22 |
return gr.update(value=default_concepts.get(prompt, []))
|
23 |
|
24 |
+
pipeline = ConceptAttentionFluxPipeline(model_name="flux-schnell", device="cuda") # , offload_model=True)
|
25 |
|
26 |
def convert_pil_to_bytes(img):
|
27 |
img = img.resize((IMG_SIZE, IMG_SIZE), resample=Image.NEAREST)
|