Update app.py
Browse files
app.py
CHANGED
@@ -44,11 +44,20 @@ questions = [
|
|
44 |
"λ³νμ λν΄ μ΄λ»κ² λ°μνλμ?"
|
45 |
]
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
# Gradio μ± μ μ
|
48 |
with gr.Blocks() as app:
|
49 |
gr.Markdown("# MBTI μ§λ¨ ν
μ€νΈ")
|
50 |
with gr.Row():
|
51 |
-
|
|
|
52 |
submit_button = gr.Button("결과 보기")
|
53 |
output_mbti, output_interpretation = gr.Textbox(label="λΉμ μ MBTI μ ν"), gr.Textbox(label="μ ν ν΄μ λ° μ§λ¨ ν
μ€νΈ λ΄μ©", lines=10)
|
54 |
|
|
|
44 |
"λ³νμ λν΄ μ΄λ»κ² λ°μνλμ?"
|
45 |
]
|
46 |
|
47 |
+
# μ΅μ
μ MBTI μ±ν₯μ λ§κ² μμ
|
48 |
+
options = {
|
49 |
+
"E/I": ["μΈν₯μ (E)", "λ΄ν₯μ (I)"],
|
50 |
+
"S/N": ["κ°κ°μ (S)", "μ§κ΄μ (N)"],
|
51 |
+
"T/F": ["μ¬κ³ μ (T)", "κ°μ μ (F)"],
|
52 |
+
"J/P": ["νλ¨μ (J)", "μΈμμ (P)"]
|
53 |
+
}
|
54 |
+
|
55 |
# Gradio μ± μ μ
|
56 |
with gr.Blocks() as app:
|
57 |
gr.Markdown("# MBTI μ§λ¨ ν
μ€νΈ")
|
58 |
with gr.Row():
|
59 |
+
# κ° μ§λ¬Έμ λν΄ MBTI μ±ν₯μ λ§λ μ΅μ
μ μ 곡
|
60 |
+
answers = [gr.Radio(options[key], label=question) for key, question in zip(options.keys(), questions)]
|
61 |
submit_button = gr.Button("결과 보기")
|
62 |
output_mbti, output_interpretation = gr.Textbox(label="λΉμ μ MBTI μ ν"), gr.Textbox(label="μ ν ν΄μ λ° μ§λ¨ ν
μ€νΈ λ΄μ©", lines=10)
|
63 |
|