Spaces:
Running
Running
File size: 436 Bytes
9b620b3 d66f99e 9b620b3 d66f99e 9b620b3 d66f99e 9b620b3 d66f99e |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# URL: https://huggingface.co/spaces/gradio/hello_world
# DESCRIPTION: The simplest possible Gradio demo. It wraps a 'Hello {name}!' function in an Interface that accepts and returns text.
import gradio as gr
# defining the core function
def greet(name):
return "Hello " + name + "!"
# defining a text-to-text interface
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
# launching the interface
demo.launch() |