JYYong commited on
Commit
65a4f6a
โ€ข
1 Parent(s): 5bc2b7b
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +6 -2
.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ app.py
app.py CHANGED
@@ -7,13 +7,17 @@ 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)
7
 
8
  with demo:
9
  gr.Markdown(f"๊ฐ ์งˆ๋ฌธ์— ๋Œ€๋‹ต ํ›„ Enter ํ•ด์ฃผ์„ธ์š”.\n\n")
10
+ with gr.Row():
11
+ topic = gr.Textbox(label="Topic", placeholder="๋Œ€ํ™” ์ฃผ์ œ๋ฅผ ์ •ํ•ด์ฃผ์„ธ์š” (e.g. ์—ฌ๊ฐ€ ์ƒํ™œ, ์ผ๊ณผ ์ง์—…, ๊ฐœ์ธ ๋ฐ ๊ด€๊ณ„, etc...)")
12
  with gr.Row():
13
  with gr.Column():
14
  addr = gr.Textbox(label="์ง€์—ญ", placeholder="e.g. ์—ฌ๊ฐ€ ์ƒํ™œ, ์ผ๊ณผ ์ง์—…, ๊ฐœ์ธ ๋ฐ ๊ด€๊ณ„, etc...")
15
  age = gr.Textbox(label="๋‚˜์ด", placeholder="e.g. 20๋Œ€ ๋ฏธ๋งŒ, 40๋Œ€, 70๋Œ€ ์ด์ƒ, etc...")
16
  sex = gr.Textbox(label="์„ฑ๋ณ„", placeholder="e.g. ๋‚จ์„ฑ, ์—ฌ์„ฑ, etc...")
17
+ with gr.Column():
18
+ addr = gr.Textbox(label="์ง€์—ญ", placeholder="e.g. ์—ฌ๊ฐ€ ์ƒํ™œ, ์ผ๊ณผ ์ง์—…, ๊ฐœ์ธ ๋ฐ ๊ด€๊ณ„, etc...")
19
+ age = gr.Textbox(label="๋‚˜์ด", placeholder="e.g. 20๋Œ€ ๋ฏธ๋งŒ, 40๋Œ€, 70๋Œ€ ์ด์ƒ, etc...")
20
+ sex = gr.Textbox(label="์„ฑ๋ณ„", placeholder="e.g. ๋‚จ์„ฑ, ์—ฌ์„ฑ, etc...")
21
  out = gr.Textbox()
22
  btn = gr.Button("Run")
23
  btn.click(fn=update, inputs=inp, outputs=out)