how to set loRA to Purz/choose-your-own-adventure using API?

#2
by srini8080 - opened
# Connect to the model
client = Client("reach-vb/Blazingly-fast-LoRA")

# Step 1: Call /lambda
print("Calling /lambda...")
result = client.predict(api_name="/lambda")
print(result)

# Step 2: Add LoRA
print("Adding LoRA: Purz/choose-your-own-adventure ")
client.predict(
    custom_lora_input="Purz/choose-your-own-adventure",
    api_name="/add_custom_lora"
)

# Step 3: Send prompt to /run_lora
print(f"Generating image for prompt: {prompt}")
result = client.predict(
    prompt=prompt,
    api_name="/run_lora"
)
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment