Spaces:
Runtime error
Runtime error
File size: 480 Bytes
6f1901f c54dd0d 6f1901f 9e97f04 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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() |