Spaces:
Sleeping
Sleeping
File size: 504 Bytes
01a4535 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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() |