arxivgpt kim commited on
Commit
c9d40d4
ยท
verified ยท
1 Parent(s): 10723c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -22
app.py CHANGED
@@ -71,26 +71,13 @@ footer {
71
  """
72
 
73
 
74
-
75
- # gr.Blocks๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ ˆ์ด์•„์›ƒ์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.
76
  with gr.Blocks(css=css) as demo:
77
-
78
  gr.Markdown("# AIQ Codepilot", elem_id="markdown-title")
79
- gr.Markdown("### AI ์ž๋™ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์„œ๋น„์Šค: ๋‚ด๊ฐ€ ๋งŒ๋“ค๊ณ  ์‹ถ์€ AI ์„œ๋น„์Šค๋ฅผ AI์—๊ฒŒ ์ž…๋ ฅ๋งŒ ํ•˜๋ฉด ์ž๋™์œผ๋กœ ์ฝ”๋“œ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ์‹คํ–‰ ๋ฐฉ๋ฒ•์„ ์•ˆ๋‚ดํ•ฉ๋‹ˆ๋‹ค.", elem_id="markdown-description")
80
 
81
  with gr.Row():
82
-
83
- text_input = gr.Textbox(
84
- label="๋ฉ”์‹œ์ง€๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”.",
85
- placeholder="์—ฌ๊ธฐ์— ์ž…๋ ฅํ•˜์„ธ์š”...",
86
- examples=[
87
- "ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์Œ์„ฑ์ƒ์„ฑ(\"gtts\") ์„œ๋น„์Šค ์ƒ์„ฑ",
88
- "MBTI 20๋ฌธํ•ญ์œผ๋กœ ๊ฐ๊ด€์‹ ์„ ํƒ์œผ๋กœ ๊ฒ€์‚ฌํ•˜๋Š” ์„œ๋น„์Šค ์ƒ์„ฑ",
89
- "์ค‘ํ•™๊ต 1ํ•™๋…„ ์˜์–ด ์‹œํ—˜๋ฌธ์ œ 10๊ฐœ๋ฅผ ์ถœ์ œํ•˜๊ณ  ๊ฐ๊ด€์‹ ์„ ํƒ๊ณผ ์ฑ„์ ํ•˜๋Š” ์„œ๋น„์Šค ์ƒ์„ฑ"
90
- ]
91
- )
92
-
93
-
94
  with gr.Row():
95
  submit_button = gr.Button("์ „์†ก")
96
  output_html = gr.HTML(label="AI ์‘๋‹ต")
@@ -99,9 +86,4 @@ with gr.Blocks(css=css) as demo:
99
  fn=predict,
100
  inputs=text_input,
101
  outputs=output_html
102
- )
103
-
104
- # ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
105
- demo.launch()
106
-
107
-
 
71
  """
72
 
73
 
 
 
74
  with gr.Blocks(css=css) as demo:
75
+ # ์—ฌ๊ธฐ์„œ๋ถ€ํ„ฐ ๋“ค์—ฌ์“ฐ๊ธฐ๋ฅผ ์‹œ์ž‘ํ•ด์„œ ๋ธ”๋ก์„ ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.
76
  gr.Markdown("# AIQ Codepilot", elem_id="markdown-title")
77
+ gr.Markdown("### AI ์ž๋™ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์„œ๋น„์Šค", elem_id="markdown-description")
78
 
79
  with gr.Row():
80
+ text_input = gr.Textbox(label="๋ฉ”์‹œ์ง€๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”...", placeholder="์—ฌ๊ธฐ์— ์ž…๋ ฅํ•˜์„ธ์š”...", examples=["ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์Œ์„ฑ์ƒ์„ฑ('gtts') ์„œ๋น„์Šค ์ƒ์„ฑ", "MBTI 20๋ฌธํ•ญ์œผ๋กœ ๊ฒ€์‚ฌํ•˜๋Š” ์„œ๋น„์Šค ์ƒ์„ฑ", "์ดˆ๋“ฑํ•™๊ต ์˜์–ด ์‹œํ—˜๋ฌธ์ œ 10๊ฐœ๋ฅผ ์ถœ์ œํ•˜๊ณ  ๊ฐ๊ด€์‹ ์„ ํƒ๊ณผ ์ฑ„์ ํ•˜๋Š” ์„œ๋น„์Šค ์ƒ์„ฑ"])
 
 
 
 
 
 
 
 
 
 
 
81
  with gr.Row():
82
  submit_button = gr.Button("์ „์†ก")
83
  output_html = gr.HTML(label="AI ์‘๋‹ต")
 
86
  fn=predict,
87
  inputs=text_input,
88
  outputs=output_html
89
+ )