File size: 395 Bytes
96a6f43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import time

import gradio as gra


def user_greeting(name):
    time.sleep(10)
    return "Hi! " + name + " Welcome to your first Gradio application!😎"


# define gradio interface and other parameters
app = gra.Interface(
    fn=user_greeting,
    inputs="text",
    outputs="text",
)
app.launch(
    server_name='0.0.0.0', server_port=8888, share=False,show_error=True, enable_queue=True
)