arxivgpt kim commited on
Update app.py
Browse files
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 ์๋ ํ๋ก๊ทธ๋๋ฐ ์๋น์ค
|
| 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 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|