File size: 456 Bytes
66b0cef
 
434846f
8a42a65
bce0716
 
 
 
 
f7420b8
bce0716
434846f
f7420b8
 
 
 
94f65a5
434846f
8a42a65
f7420b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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(
    fn=generate_image,
    inputs=gr.Textbox(label="Type your imagination:"),
    outputs=gr.Image(label="Generated Image"),
    examples=examples,
    theme="NoCrypt/miku",
)

interface.launch()