Gradio

예제

def inference(inputs):
    return 'a', 'b', 'c'
    
demo = gr.Interface(
    fn=inference,
    inputs=[
        gr.Textbox(lines=3),
    ],
    outputs=[
        gr.Textbox(label='model1'),
        gr.Textbox(label='model2'),
        gr.Textbox(label='model3'),
    ],
    examples=[
        'example1',
        'example2',
        'example3',
    ]
)

demo.launch(server_name='0.0.0.0', server_port=8888)

Last Modified: 2024/02/12 12:53:09

is a collection of Papers I have written.
© 2000 - Sang-Kil Park Except where otherwise noted, content on this site is licensed under a CC BY 4.0.
This site design was brought from Distill.