File size: 431 Bytes
66b0cef
 
434846f
8a42a65
bce0716
 
 
 
 
 
 
434846f
 
bce0716
6fbc1c9
94f65a5
434846f
8a42a65
434846f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr

model = gr.load("models/Purz/face-projection")

def generate_image(text):
    if text in examples:
        print(f"Using example: {text}")
    return model(text)

examples = ["Humanoid Cat Warrior, Full View"]

interface = gr.Interface(
    model,
    inputs=gr.Textbox(label="Type your imagination:", examples=examples),
    outputs=gr.Image(label="Gen Image"),
    theme="NoCrypt/miku",
)

interface.launch()