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 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|