ndg04041 commited on
Commit
e71c3d6
โ€ข
1 Parent(s): f2b476b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -4,8 +4,7 @@ def echo(text):
4
  return text
5
 
6
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜
7
- input_text = gr.inputs.Textbox(lines=5, label="์ž…๋ ฅํ•˜์„ธ์š”:")
8
- output_text = gr.outputs.Textbox(label="๊ฒฐ๊ณผ:")
9
 
10
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
11
- gr.Interface(echo, inputs=input_text, outputs=output_text).launch()
 
4
  return text
5
 
6
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜
7
+ input_text = gr.Interface(fn=echo, inputs="text", outputs="text", title="Echo App", description="์ž…๋ ฅํ•œ ํ…์ŠคํŠธ๋ฅผ ๊ทธ๋Œ€๋กœ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.")
 
8
 
9
  # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
10
+ input_text.launch()