# 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(); |