File size: 345 Bytes
a31bbda
 
 
 
 
680ded3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr

def greet(name):
    return "Hello " + name + "!!"

with gr.Blocks() as demo:

    iface = gr.Interface(
        fn=greet,
        inputs="text",
        outputs="text",
        title="Title"
    )
    
    gr.Markdown("## Text Examples")
    gr.Examples(
        "Text_1"
    )

if __name__ == "__main__":
    demo.launch()