Text-to-Image / app.py
Jonny001's picture
Update app.py
bce0716 verified
raw
history blame
431 Bytes
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()