File size: 269 Bytes
9b620b3
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# URL: https://huggingface.co/spaces/gradio/hello_world
# imports
import gradio as gr

# core function
def greet(name):
    return "Hello " + name + "!"

# text to text interface 
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
    
# launch 
demo.launch()