Spaces:
Running on Zero
Running on Zero
vimalprasad37 commited on
Commit ·
cff0e4b
1
Parent(s): 3cc9bc8
Promote 24-hour Pro trials in studio access messages
Browse files162 unmodified lines163164165166167168169170171172162 unmodified lines`amisima/wan-2.2-lora-storage`, or point `LORA_LIBRARY_DIR` at the mount path directly. Without amounted bucket it falls back to an `HF_TOKEN` with write access.## 24-hour Pro demo**Request Demo** below the purchase button opens ERP's `/wan-studio-pro/demo` form in the current tab, including inside the Hugging Face app iframe.The emailed `WSP-DEMO-…` key unlocks this studio only, expires 24 hours after issuance, and is available once per normalized email for this studio.Demo validation uses the existing `ODOO_KEY_BACKEND_TOKEN` service secret and checks expiry and revocation before premium work.Open pages relock when a demo expires. Permanent-key validation and generation settings retain their existing behavior.ERP tracks demo users separately under **Studio Payments → Temporary Pro Users**.162 unmodified lines163164165166167168169170171172162 unmodified lines`amisima/wan-2.2-lora-storage`, or point `LORA_LIBRARY_DIR` at the mount path directly. Without amounted bucket it falls back to an `HF_TOKEN` with write access.## 24-hour Pro trial**Request Trial** below the purchase button opens ERP's `/wan-studio-pro/demo` form in the current tab, including inside the Hugging Face app iframe.The emailed `WSP-DEMO-…` key unlocks this studio only, expires 24 hours after issuance, and is available once per normalized email for this studio.Trial validation uses the existing `ODOO_KEY_BACKEND_TOKEN` service secret and checks expiry and revocation before premium work.Open pages relock when a trial expires. Permanent-key validation and generation settings retain their existing behavior.ERP tracks trial users separately under **Studio Payments → Temporary Pro Users**.
959 unmodified lines9609619629639649659669675 unmodified lines973974975976977978979980981982959 unmodified lines"ODOO_KEY_BACKEND_TOKEN")DEMO_LINK = ("<div class='demo-offer'><small>Want to try before proceeding? ""One free 24-hour Pro demo per email for this studio.</small>"f"<a class='buy-link demo-link' href='{DEMO_URL}' target='_self'>Request Demo →</a></div>")5 unmodified linesgrant = _DEMO_CLIENT.validate(key)if grant:expiry = grant.expires_at.strftime("%d %b %Y, %H:%M UTC")message = ("<div class='status-ok'><b>24-hour Pro demo active</b>"f"<span>Expires {expiry}. GPU usage limits still apply.</span></div>")else:message = ("<div class='status-lock'><b>This demo key is invalid, expired or revoked.</b>"f"<span>{BUY_LINK} for permanent access.</span></div>")return (grant if grant else False, message, *_lock_updates(bool(grant)))959 unmodified lines9609619629639649659669675 unmodified lines973974975976977978979980981982959 unmodified lines"ODOO_KEY_BACKEND_TOKEN")DEMO_LINK = ("<div class='demo-offer'><small>Want to try before proceeding? ""One free 24-hour Pro trial per email for this studio.</small>"f"<a class='buy-link demo-link' href='{DEMO_URL}' target='_self'>Request Trial →</a></div>")5 unmodified linesgrant = _DEMO_CLIENT.validate(key)if grant:expiry = grant.expires_at.strftime("%d %b %Y, %H:%M UTC")message = ("<div class='status-ok'><b>24-hour Pro trial active</b>"f"<span>Expires {expiry}. GPU usage limits still apply.</span></div>")else:message = ("<div class='status-lock'><b>This trial key is invalid, expired or revoked.</b>"f"<span>{BUY_LINK} for permanent access.</span></div>")return (grant if grant else False, message, *_lock_updates(bool(grant)))
README.md+5-5
app.py+4-4