Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,8 @@ def load_lora_pipeline(revision: str):
|
|
| 56 |
|
| 57 |
# Extract step number from revision name (e.g., "step_1500" -> "1500")
|
| 58 |
step_num = revision.split('_')[-1]
|
|
|
|
|
|
|
| 59 |
filename = f"moroccan_ghibli_flux_lora_00000{step_num}.safetensors"
|
| 60 |
|
| 61 |
logger.info(f"Downloading LoRA weights: {filename}")
|
|
@@ -73,7 +75,7 @@ def load_lora_pipeline(revision: str):
|
|
| 73 |
def init_pipelines(style_intensity: str = "medium"):
|
| 74 |
global pipeline_base, pipeline_lora
|
| 75 |
revision_map = {
|
| 76 |
-
"low": "
|
| 77 |
"medium": "step_1500",
|
| 78 |
"high": "step_2500"
|
| 79 |
}
|
|
|
|
| 56 |
|
| 57 |
# Extract step number from revision name (e.g., "step_1500" -> "1500")
|
| 58 |
step_num = revision.split('_')[-1]
|
| 59 |
+
if len(step_num) < 4:
|
| 60 |
+
step_num = '0' + step_num
|
| 61 |
filename = f"moroccan_ghibli_flux_lora_00000{step_num}.safetensors"
|
| 62 |
|
| 63 |
logger.info(f"Downloading LoRA weights: {filename}")
|
|
|
|
| 75 |
def init_pipelines(style_intensity: str = "medium"):
|
| 76 |
global pipeline_base, pipeline_lora
|
| 77 |
revision_map = {
|
| 78 |
+
"low": "step_750",
|
| 79 |
"medium": "step_1500",
|
| 80 |
"high": "step_2500"
|
| 81 |
}
|