JYYong commited on
Commit
5bc2b7b
โ€ข
1 Parent(s): 0a69b1e
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -6,12 +6,14 @@ def update(name):
6
  demo = gr.Blocks()
7
 
8
  with demo:
9
- gr.Markdown(f"์ง€๊ธˆ๋ถ€ํ„ฐ ๋Œ€ํ™” ์ •๋ณด๋ฅผ ์ž…๋ ฅ ๋ฐ›๊ฒ ์Šต๋‹ˆ๋‹ค.\n\n"
10
- f"๊ฐ ์งˆ๋ฌธ์— ๋Œ€๋‹ต ํ›„ Enter ํ•ด์ฃผ์„ธ์š”.\n\n"
11
- f"์•„๋ฌด ์ž…๋ ฅ ์—†์ด Enter ํ•  ๊ฒฝ์šฐ, ๋ฏธ๋ฆฌ ์ง€์ •๋œ ๊ฐ’ ์ค‘ ๋žœ๋ค์œผ๋กœ ์ •ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.\n"
12
- )
13
  with gr.Row():
14
- inp = gr.Textbox(label="topic", placeholder="What is your name?")
 
 
 
 
15
  out = gr.Textbox()
16
  btn = gr.Button("Run")
17
  btn.click(fn=update, inputs=inp, outputs=out)
 
6
  demo = gr.Blocks()
7
 
8
  with demo:
9
+ gr.Markdown(f"๊ฐ ์งˆ๋ฌธ์— ๋Œ€๋‹ต ํ›„ Enter ํ•ด์ฃผ์„ธ์š”.\n\n")
10
+ topic = gr.Textbox(label="Topic", placeholder="๋Œ€ํ™” ์ฃผ์ œ๋ฅผ ์ •ํ•ด์ฃผ์„ธ์š” (e.g. ์—ฌ๊ฐ€ ์ƒํ™œ, ์ผ๊ณผ ์ง์—…, ๊ฐœ์ธ ๋ฐ ๊ด€๊ณ„, etc...)")
 
 
11
  with gr.Row():
12
+ with gr.Column():
13
+ addr = gr.Textbox(label="์ง€์—ญ", placeholder="e.g. ์—ฌ๊ฐ€ ์ƒํ™œ, ์ผ๊ณผ ์ง์—…, ๊ฐœ์ธ ๋ฐ ๊ด€๊ณ„, etc...")
14
+ age = gr.Textbox(label="๋‚˜์ด", placeholder="e.g. 20๋Œ€ ๋ฏธ๋งŒ, 40๋Œ€, 70๋Œ€ ์ด์ƒ, etc...")
15
+ sex = gr.Textbox(label="์„ฑ๋ณ„", placeholder="e.g. ๋‚จ์„ฑ, ์—ฌ์„ฑ, etc...")
16
+
17
  out = gr.Textbox()
18
  btn = gr.Button("Run")
19
  btn.click(fn=update, inputs=inp, outputs=out)