hugging-test-repo / gradio-test.py
ruatnec's picture
hello λ³€κ²½, gradio-test
9cb71ea
raw
history blame contribute delete
418 Bytes
# pip install gradio
import gradio as gr
def greeting(string):
return "μ•ˆλ…•ν•˜μ„Έμš”, " + string + "λ‹˜!"
input_box = gr.inputs.Textbox()
output_box = gr.outputs.Textbox()
title = "μΈμ‚¬ν•˜λŠ” ν”„λ‘œκ·Έλž¨"
description = "이름을 μž…λ ₯ν•˜λ©΄ 'μ•ˆλ…•ν•˜μ„Έμš”, μ΄λ¦„λ‹˜!'이 좜λ ₯λ©λ‹ˆλ‹€."
gr.Interface(fn=greeting, inputs=input_box, outputs=output_box, title=title, description=description).launch();