Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ hf_token = os.environ.get("HF_TOKEN")
|
|
10 |
from diffusers import AutoPipelineForText2Image
|
11 |
|
12 |
|
13 |
-
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
pipe = AutoPipelineForText2Image.from_pretrained("briaai/BRIA-2.3", torch_dtype=torch.float16, force_zeros_for_empty_prompt=False).to(device)
|
15 |
pipe.load_ip_adapter("briaai/Image-Prompt", subfolder='models', weight_name="ip_adapter_bria.bin")
|
16 |
|
|
|
10 |
from diffusers import AutoPipelineForText2Image
|
11 |
|
12 |
|
13 |
+
device = "cuda" #if torch.cuda.is_available() else "cpu"
|
14 |
pipe = AutoPipelineForText2Image.from_pretrained("briaai/BRIA-2.3", torch_dtype=torch.float16, force_zeros_for_empty_prompt=False).to(device)
|
15 |
pipe.load_ip_adapter("briaai/Image-Prompt", subfolder='models', weight_name="ip_adapter_bria.bin")
|
16 |
|