File size: 678 Bytes
14919dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from gradio_client import Client, handle_file

# Connect to your Space
client = Client("HolySmokes1234/HolySmokesGenerator")

# STEP 1 — Generate the preview
preview = client.predict(
    img=handle_file("your_photo.png"),
    name="Juan",
    vibe="Saint of Drama",
    color="Divine Gold",
    prop="Candles & Incense",
    sin="Chaos",
    personality="Iconic",
    frame_label="Frame 1",
    remove_bg_flag=True,
    cartoon_flag=False,
    api_name="/update_preview",
)

# STEP 2 — Canonize the preview
result = client.predict(
    preview_img=preview,
    vibe="Saint of Drama",
    sin="Chaos",
    personality="Iconic",
    api_name="/canonize_ai",
)

print(result)