Spaces:
Sleeping
Sleeping
StableVITON Deployer commited on
Commit ·
bb682cf
1
Parent(s): f319748
Migration: Switch to Gradio API (merve/fashn-vton-1.5) and updated token
Browse filesFiles changed (2)
- inference_wrapper.py+1-1
- main.py+3-3
21 unmodified lines2223242526272821 unmodified lines"""def __init__(self,model_path: str = "fashn-ai/fashn-vton-1.5",hf_token: Optional[str] = None,**kwargs):21 unmodified lines2223242526272821 unmodified lines"""def __init__(self,model_path: str = "merve/fashn-vton-1.5",hf_token: Optional[str] = None,**kwargs):
34 unmodified lines3536373839404142434434 unmodified linesglobal modeltry:logger.info("Initializing StableVITON Inference Engine (Lifespan Startup)...")# Initialize the local inference enginemodel = StableVITONInference(model_path=os.getenv("MODEL_PATH", "yisol/IDM-VTON"),device="auto")logger.info("StableVITON Inference Engine initialized successfully")except Exception:34 unmodified lines3536373839404142434434 unmodified linesglobal modeltry:logger.info("Initializing StableVITON Inference Engine (Lifespan Startup)...")# Initialize the API inference enginemodel = StableVITONInference(model_path=os.getenv("MODEL_PATH", "merve/fashn-vton-1.5"),hf_token=os.getenv("HF_TOKEN"))logger.info("StableVITON Inference Engine initialized successfully")except Exception:
inference_wrapper.py+1-1
main.py+3-3