Spaces:
Runtime error
Runtime error
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() |