Text2ImgPort / app.py
Cacau's picture
Update app.py
9e97f04
raw
history blame
480 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.SIMPLE_ORANGE) as demo:
text_input = gr.inputs.Textbox(lines=2, placeholder="Name Here...")
output_text = gr.outputs.Textbox()
gr.Interface(fn=greet, inputs=text_input, outputs=output_text).\
label("Greeting App").\
caption("Type your name to receive a personalized greeting.").\
launch()