Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,6 +39,7 @@ hftoken = os.getenv("HF_AUTH_TOKEN")
|
|
| 39 |
|
| 40 |
image_encoder_path = "google/siglip-so400m-patch14-384"
|
| 41 |
ipadapter_path = hf_hub_download(repo_id="InstantX/SD3.5-Large-IP-Adapter", filename="ip-adapter.bin")
|
|
|
|
| 42 |
|
| 43 |
def upload_to_ftp(filename):
|
| 44 |
try:
|
|
@@ -95,7 +96,7 @@ refiner.scheduler=EulerAncestralDiscreteScheduler.from_config(refiner.scheduler.
|
|
| 95 |
|
| 96 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint, add_prefix_space=False, device_map='balanced')
|
| 97 |
tokenizer.tokenizer_legacy=False
|
| 98 |
-
model =
|
| 99 |
#model = torch.compile(model)
|
| 100 |
|
| 101 |
pipe.init_ipadapter(
|
|
|
|
| 39 |
|
| 40 |
image_encoder_path = "google/siglip-so400m-patch14-384"
|
| 41 |
ipadapter_path = hf_hub_download(repo_id="InstantX/SD3.5-Large-IP-Adapter", filename="ip-adapter.bin")
|
| 42 |
+
model_path = 'ford442/stable-diffusion-3.5-medium-bf16'
|
| 43 |
|
| 44 |
def upload_to_ftp(filename):
|
| 45 |
try:
|
|
|
|
| 96 |
|
| 97 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint, add_prefix_space=False, device_map='balanced')
|
| 98 |
tokenizer.tokenizer_legacy=False
|
| 99 |
+
model = AutoModelForC5ausalLM.from_pretrained(checkpoint, device_map='balanced')
|
| 100 |
#model = torch.compile(model)
|
| 101 |
|
| 102 |
pipe.init_ipadapter(
|