Quantumbraid's picture
Add Hello World app
554b052 verified
Raw History Blame Contribute Delete
382 Bytes
import gradio as gr
def hello(name: str) -> str:
return f"Hello, {name or 'world'}!"
demo = gr.Interface(
fn=hello,
inputs=gr.Textbox(label="Your name", placeholder="world"),
outputs=gr.Textbox(label="Greeting"),
title="Hello World",
description="A tiny Space created through the Hugging Face connector.",
)
if __name__ == "__main__":
demo.launch()