Update app.py
Browse files2 unmodified lines34567892 unmodified linesimport torch # Import torch for loading the checkpoint# Set the path to the LoRA checkpoint filelora_path = "/path/to/your/lora_checkpoint.pt" # Replace with the correct path# Load the checkpoint from the specified pathcheckpoint = torch.load(lora_path, map_location=device)2 unmodified lines34567892 unmodified linesimport torch # Import torch for loading the checkpoint# Set the path to the LoRA checkpoint filelora_path = "./lora_checkpoint.pt" # Assuming the checkpoint is in the current folder# Load the checkpoint from the specified pathcheckpoint = torch.load(lora_path, map_location=device)
app.py+1-1