Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,12 +28,12 @@ options = [
|
|
28 |
["리λμμ λ°ννλ€", "νμμΌλ‘μ μ§μνλ€"]
|
29 |
]
|
30 |
|
31 |
-
# MBTI μ ν κ³μ°
|
32 |
def calculate_mbti(*answers):
|
33 |
# λ¨μνλ μμ λ‘μ§: μ νλ μ΅μ
μ μΈλ±μ€λ₯Ό κΈ°λ°μΌλ‘ MBTI μ ν κ²°μ
|
34 |
mbti_type = "INFP" # μμ κ²°κ³Ό
|
35 |
-
|
36 |
-
return mbti_type,
|
37 |
|
38 |
# Gradio μΈν°νμ΄μ€ ꡬμ±
|
39 |
iface = gr.Interface(
|
@@ -41,11 +41,10 @@ iface = gr.Interface(
|
|
41 |
inputs=[gr.Radio(options[i], label=questions[i]) for i in range(10)],
|
42 |
outputs=[
|
43 |
gr.Textbox(label="λΉμ μ MBTI μ ν"),
|
44 |
-
gr.Textbox(label="
|
45 |
-
gr.Textbox(label="λνμ μΈ μ λͺ
μΈ")
|
46 |
],
|
47 |
title="MBTI μ§λ¨ ν
μ€νΈ",
|
48 |
-
description="10κ°μ μ§λ¬Έμ λ΅νμ¬ λΉμ μ MBTI
|
49 |
)
|
50 |
|
51 |
# μΈν°νμ΄μ€ μ€ν
|
|
|
28 |
["리λμμ λ°ννλ€", "νμμΌλ‘μ μ§μνλ€"]
|
29 |
]
|
30 |
|
31 |
+
# MBTI μ ν κ³μ° ν¨μ
|
32 |
def calculate_mbti(*answers):
|
33 |
# λ¨μνλ μμ λ‘μ§: μ νλ μ΅μ
μ μΈλ±μ€λ₯Ό κΈ°λ°μΌλ‘ MBTI μ ν κ²°μ
|
34 |
mbti_type = "INFP" # μμ κ²°κ³Ό
|
35 |
+
mbti_interpretation = "λΉμ μ μ΄μμ μ΄κ³ , μ΄μ μ μ΄λ©°, μ°½μμ μΈ μ¬λμ
λλ€." # μμ ν΄μ
|
36 |
+
return mbti_type, mbti_interpretation
|
37 |
|
38 |
# Gradio μΈν°νμ΄μ€ ꡬμ±
|
39 |
iface = gr.Interface(
|
|
|
41 |
inputs=[gr.Radio(options[i], label=questions[i]) for i in range(10)],
|
42 |
outputs=[
|
43 |
gr.Textbox(label="λΉμ μ MBTI μ ν"),
|
44 |
+
gr.Textbox(label="μ ν ν΄μ")
|
|
|
45 |
],
|
46 |
title="MBTI μ§λ¨ ν
μ€νΈ",
|
47 |
+
description="10κ°μ μ§λ¬Έμ λ΅νμ¬ λΉμ μ MBTI μ νμ μμ보μΈμ."
|
48 |
)
|
49 |
|
50 |
# μΈν°νμ΄μ€ μ€ν
|