Spaces:
Sleeping
Sleeping
import gradio as gr | |
def hello_world(input_text): | |
# μ λ ₯κ°μ λ°μμ "world"λ₯Ό ν¬ν¨νμ¬ λ°νν©λλ€ | |
return f"{input_text}, world!" | |
# Gradio μΈν°νμ΄μ€ μμ± | |
demo = gr.Interface( | |
fn=hello_world, | |
inputs=gr.Textbox(placeholder="ν μ€νΈλ₯Ό μ λ ₯νμΈμ..."), | |
outputs="text", | |
title="Hello World App", | |
description="μ λ ₯ν ν μ€νΈμ 'world'λ₯Ό μΆκ°νμ¬ λ°νν©λλ€." | |
) | |
# μ ν리μΌμ΄μ μ€ν | |
if __name__ == "__main__": | |
demo.launch() |