import gradio as gr def greet(name): return f"안녕하세요, {name}!" # Gradio 인터페이스 정의 iface = gr.Interface( fn=greet, inputs=gr.Textbox(lines=10, label="여기에 이름을 입력하세요"), outputs=gr.Textbox(label="응답"), title="인사하기", description="이 웹은 주어진 이름에 대해 안녕하세요로 인사합니다.", article="이것은 파이썬 함수와 Gradio를 활용한 웹 예제입니다." ) iface.launch(debug=True, share=True)