import gradio as gr # 입력에 'world'를 추가하는 함수 def add_world(input_text): return input_text + " world" # Gradio 인터페이스 설정 iface = gr.Interface(fn=add_world, inputs="text", outputs="text", title="Hello to World") # 인터페이스 실행 iface.launch()