Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
cac974c
1
Parent(s):
3a5de53
Removed gpu offloading
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def update_default_concepts(prompt):
|
|
37 |
|
38 |
return gr.update(value=default_concepts.get(prompt, []))
|
39 |
|
40 |
-
pipeline = ConceptAttentionFluxPipeline(model_name="flux-schnell", device="cuda"
|
41 |
|
42 |
def convert_pil_to_bytes(img):
|
43 |
img = img.resize((IMG_SIZE, IMG_SIZE), resample=Image.NEAREST)
|
@@ -271,7 +271,7 @@ with gr.Blocks(
|
|
271 |
)
|
272 |
|
273 |
if __name__ == "__main__":
|
274 |
-
demo.launch(
|
275 |
# share=True,
|
276 |
# server_name="0.0.0.0",
|
277 |
# inbrowser=True,
|
|
|
37 |
|
38 |
return gr.update(value=default_concepts.get(prompt, []))
|
39 |
|
40 |
+
pipeline = ConceptAttentionFluxPipeline(model_name="flux-schnell", device="cuda") #, offload_model=True)
|
41 |
|
42 |
def convert_pil_to_bytes(img):
|
43 |
img = img.resize((IMG_SIZE, IMG_SIZE), resample=Image.NEAREST)
|
|
|
271 |
)
|
272 |
|
273 |
if __name__ == "__main__":
|
274 |
+
demo.launch()
|
275 |
# share=True,
|
276 |
# server_name="0.0.0.0",
|
277 |
# inbrowser=True,
|