Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,10 +20,10 @@ print("downloading models - 4/4")
|
|
| 20 |
hf_hub_download("XLabs-AI/flux-controlnet-canny", "controlnet.safetensors")
|
| 21 |
print("downloaded!")
|
| 22 |
|
| 23 |
-
from src.flux.xflux_pipeline import XFluxPipeline
|
| 24 |
|
| 25 |
@spaces.GPU(duration=200)
|
| 26 |
def process_image(lora_path, lora_name, image, prompt, steps, use_lora, use_controlnet, use_depth, use_hed, use_ip, lora_weight, negative_image, neg_prompt, true_gs, guidance, cfg):
|
|
|
|
| 27 |
def run_xflux_pipeline(
|
| 28 |
prompt, image, repo_id, name, device,
|
| 29 |
model_type, width, height, timestep_to_start_cfg, num_steps, true_gs, guidance,
|
|
|
|
| 20 |
hf_hub_download("XLabs-AI/flux-controlnet-canny", "controlnet.safetensors")
|
| 21 |
print("downloaded!")
|
| 22 |
|
|
|
|
| 23 |
|
| 24 |
@spaces.GPU(duration=200)
|
| 25 |
def process_image(lora_path, lora_name, image, prompt, steps, use_lora, use_controlnet, use_depth, use_hed, use_ip, lora_weight, negative_image, neg_prompt, true_gs, guidance, cfg):
|
| 26 |
+
from src.flux.xflux_pipeline import XFluxPipeline
|
| 27 |
def run_xflux_pipeline(
|
| 28 |
prompt, image, repo_id, name, device,
|
| 29 |
model_type, width, height, timestep_to_start_cfg, num_steps, true_gs, guidance,
|