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()