ndg04041 commited on
Commit
de81cf1
β€’
1 Parent(s): 6d65fe9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,11 +1,11 @@
1
  import gradio as gr
2
 
3
- def convert_to_uppercase(text):
4
- return text.upper()
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(convert_to_uppercase, inputs=input_text, outputs=output_text).launch()
 
1
  import gradio as gr
2
 
3
+ 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()