Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -337,7 +337,7 @@ pipeline = LTX23DistilledA2VPipeline(
|
|
| 337 |
)
|
| 338 |
# ----------------------------------------------------------------
|
| 339 |
|
| 340 |
-
def _make_lora_key(pose_strength: float, general_strength: float, motion_strength: float, dreamlay_strength: float, mself_strength: float, dramatic_strength: float, fluid_strength: float, liquid_strength: float, demopose_strength: float) -> tuple[str, str]:
|
| 341 |
rt = round(float(transit_strength), 2)
|
| 342 |
rp = round(float(pose_strength), 2)
|
| 343 |
rg = round(float(general_strength), 2)
|
|
@@ -348,7 +348,7 @@ def _make_lora_key(pose_strength: float, general_strength: float, motion_strengt
|
|
| 348 |
rf = round(float(fluid_strength), 2)
|
| 349 |
rl = round(float(liquid_strength), 2)
|
| 350 |
ro = round(float(demopose_strength), 2)
|
| 351 |
-
key_str = f"{pose_lora_path}:{rp}|{general_lora_path}:{rg}|{motion_lora_path}:{rm}|{dreamlay_lora_path}:{rd}|{mself_lora_path}:{rs}|{dramatic_lora_path}:{rr}|{fluid_lora_path}:{rf}|{liquid_lora_path}:{rl}|{demopose_lora_path}:{ro}"
|
| 352 |
key = hashlib.sha256(key_str.encode("utf-8")).hexdigest()
|
| 353 |
return key, key_str
|
| 354 |
|
|
|
|
| 337 |
)
|
| 338 |
# ----------------------------------------------------------------
|
| 339 |
|
| 340 |
+
def _make_lora_key(transit_strength: float,pose_strength: float, general_strength: float, motion_strength: float, dreamlay_strength: float, mself_strength: float, dramatic_strength: float, fluid_strength: float, liquid_strength: float, demopose_strength: float) -> tuple[str, str]:
|
| 341 |
rt = round(float(transit_strength), 2)
|
| 342 |
rp = round(float(pose_strength), 2)
|
| 343 |
rg = round(float(general_strength), 2)
|
|
|
|
| 348 |
rf = round(float(fluid_strength), 2)
|
| 349 |
rl = round(float(liquid_strength), 2)
|
| 350 |
ro = round(float(demopose_strength), 2)
|
| 351 |
+
key_str = f"{transit_lora_path}:{rt}|{pose_lora_path}:{rp}|{general_lora_path}:{rg}|{motion_lora_path}:{rm}|{dreamlay_lora_path}:{rd}|{mself_lora_path}:{rs}|{dramatic_lora_path}:{rr}|{fluid_lora_path}:{rf}|{liquid_lora_path}:{rl}|{demopose_lora_path}:{ro}"
|
| 352 |
key = hashlib.sha256(key_str.encode("utf-8")).hexdigest()
|
| 353 |
return key, key_str
|
| 354 |
|