Text2ImgPort / app.py
Cacau's picture
Update app.py
ab75c65
raw
history blame
845 Bytes
import gradio as gr
import requests
import io
from PIL import Image
def greet(name):
return "Hello " + name + "!!"
with gr.Blocks(theme=gradio.Themes.SOFT_ORANGE) as demo:
name_input = gr.inputs.Textbox(lines=2, placeholder="PROMPT HERE...", label="Enter your prompt!")
greet_output = gr.outputs.Textbox(label="Greeting")
greet_interface = gr.Interface(
fn=greet,
inputs=name_input,
outputs=greet_output,
title="Test this authoral illustration style",
description="This App generates images through a finetuned model in a authoral illustration style.",
theme=gradio.Themes.LIGHT,
layout="vertical",
analytics_enabled=False
)
demo = gr.Interface(
fn=greet,
inputs=gr.Textbox(lines=2, placeholder="Name Here..."),
outputs="text",
)
demo.launch()