『비전공자도 이해할 수 있는 챗GPT』,
『비전공자도 이해할 수 있는 AI 지식』
10만 베스트셀러를 기록한
세상에서 가장 이해하기 쉬운 챗GPT 교양서

HOME » WIKI » Gradio

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
자바 알고리즘 인터뷰 파이썬 알고리즘 인터뷰

카카오 코딩 테스트 출제위원이 직접 집필한,
리트코드(LeetCode) 문제로 풀어보는,
구글, 마이크로소프트, 네이버, 카카오
코딩 테스트 완벽 가이드
『자바 알고리즘 인터뷰』,
『파이썬 알고리즘 인터뷰』

이 사이트의 운영 비용을 후원할 수 있으며, 후원자에게 혜택을 제공할 예정입니다.

© 2000 - Sang Park Except where otherwise noted, content on this site is licensed under a CC BY-NC 4.0.
This site design was brought from Distill. Logo and wiki background image was brought from Bear.