File size: 608 Bytes
eb5f1f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 + "!"

## just used the Textbox class
demo = gr.Interface(
    ## you can add title ; description: examples : inputs: outputs 
    title='This is a demo app',
    description='Description of a test app',
    fn=greet, 
    inputs=gr.Textbox(lines=4,  ## now you can specify some params 
                        placeholder="Name Here ...",
                        label="Your name"),
            ## you can also do a list of various inputs 
    outputs="text",
    examples=[['xxxyyy'],['1234']]
    # css = ....
    )

demo.launch(share=True)