File size: 340 Bytes
aab7ecd
 
 
 
 
 
 
a9586db
aab7ecd
 
a9586db
a823cf0
aab7ecd
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
from main import main_fn


iface = gr.Interface(
    fn=main_fn, 
    inputs= [
            gr.inputs.Textbox(type="text", label='Name')
        ], 
    outputs= [
            gr.outputs.Textbox(type="text", label='Gender'),
            # gr.outputs.Number(label = 'Percentage confidence')
        ]
    )
iface.launch()