mbti / app.py
taeyeol's picture
Update app.py
fa763c0 verified
raw
history blame
18.2 kB
import gradio as gr
import numpy as np
# ์งˆ๋ฌธ ๋ฆฌ์ŠคํŠธ
questions = [
"๋‹น์‹ ์€ ํ˜ผ์ž ์žˆ์„ ๋•Œ ์—๋„ˆ์ง€๋ฅผ ์–ป๋‚˜์š”?",
"๋‹น์‹ ์€ ๊ณ„ํš์„ ์„ธ์šฐ๋Š” ๊ฒƒ์„ ์ข‹์•„ํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ์ƒˆ๋กœ์šด ์ƒํ™ฉ์— ์‰ฝ๊ฒŒ ์ ์‘ํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๊ฐ์ •๋ณด๋‹ค๋Š” ๋…ผ๋ฆฌ์— ๋” ์˜์กดํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์„ ๋•๋Š” ๊ฒƒ์„ ์ข‹์•„ํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ์‚ฌ๊ต์ ์ธ ์„ฑ๊ฒฉ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‚˜์š”?",
"๋‹น์‹ ์€ ์ผ์„ ๋๋‚ด๊ธฐ ์ „์— ๊ณ„ํš์„ ์„ธ์šฐ๋Š” ํŽธ์ธ๊ฐ€์š”?",
"๋‹น์‹ ์€ ์‚ฌ์‹ค๊ณผ ๋ฐ์ดํ„ฐ๋ฅผ ์ค‘์‹œํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๊ฐ์ • ํ‘œํ˜„์„ ์ž˜ ํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ๋•Œ ์ฐฝ์˜์ ์ธ ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค๊ณผ์˜ ํ˜‘์—…์„ ์„ ํ˜ธํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๊ฒฐ์ •์„ ๋‚ด๋ฆด ๋•Œ ์ง๊ฐ์„ ์‹ ๋ขฐํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๊ทœ์น™๊ณผ ์ ˆ์ฐจ๋ฅผ ๋”ฐ๋ฅด๋Š” ๊ฒƒ์„ ์ข‹์•„ํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ์ฃผ๋ณ€ ํ™˜๊ฒฝ์— ๋ฏผ๊ฐํ•˜๊ฒŒ ๋ฐ˜์‘ํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ์ผ์„ ์ฒ˜๋ฆฌํ•  ๋•Œ ํšจ์œจ์„ฑ์„ ์ค‘์‹œํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๋‚จ๋“ค์ด ์ƒ๊ฐํ•˜๋Š” ๊ฒƒ์— ๋Œ€ํ•ด ๋งŽ์ด ์‹ ๊ฒฝ ์“ฐ๋‚˜์š”?",
"๋‹น์‹ ์€ ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ๋ฆฌ๋” ์—ญํ• ์„ ๋งก๊ฒŒ ๋˜๋‚˜์š”?",
"๋‹น์‹ ์€ ์ƒˆ๋กœ์šด ์•„์ด๋””์–ด๋ฅผ ์ œ์•ˆํ•˜๋Š” ๊ฒƒ์„ ์ข‹์•„ํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๋Œ€์ธ ๊ด€๊ณ„์—์„œ ๊ฐˆ๋“ฑ์„ ํ”ผํ•˜๋ ค ํ•˜๋‚˜์š”?",
"๋‹น์‹ ์€ ๋ชฉํ‘œ๋ฅผ ์„ค์ •ํ•˜๊ณ  ์ด๋ฅผ ๋‹ฌ์„ฑํ•˜๊ธฐ ์œ„ํ•ด ๋…ธ๋ ฅํ•˜๋‚˜์š”?"
]
# MBTI ์œ ํ˜• ์˜ˆ์‹œ ๋ฐ์ดํ„ฐ
mbti_types = {
"INTJ": {
"์„ฑ๊ฒฉ": "๋…์ฐฝ์ ์ด๊ณ  ์ „๋žต์ ์ธ ์‚ฌ๊ณ ๋ฅผ ๊ฐ€์ง„ ์กฐ์šฉํ•œ ๋ฆฌ๋”",
"์ง์—…": "๊ณผํ•™์ž, ์—”์ง€๋‹ˆ์–ด, ๋ฐ์ดํ„ฐ ๋ถ„์„๊ฐ€",
"๊ถํ•ฉ": ["ENFP", "ENTP"],
"๋‚˜์œ ๊ถํ•ฉ": ["ESFP", "ESTP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ENFP": "ENFP๋Š” INTJ์˜ ์ด์ƒ์ฃผ์˜๋ฅผ ์ž๊ทนํ•˜๊ณ , ์„œ๋กœ์˜ ๊ฐ•์ ๊ณผ ์•ฝ์ ์„ ๋ณด์™„ํ•ฉ๋‹ˆ๋‹ค.",
"ENTP": "ENTP๋Š” INTJ์˜ ์ฐฝ์˜์„ฑ๊ณผ ์ „๋žต์  ์‚ฌ๊ณ ๋ฅผ ์ž๊ทนํ•˜์—ฌ ์ƒ์‚ฐ์ ์ธ ํŒŒํŠธ๋„ˆ์‹ญ์„ ํ˜•์„ฑํ•ฉ๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ESFP": "ESFP๋Š” INTJ์™€ ์ •๋ฐ˜๋Œ€์˜ ์„ฑํ–ฅ์„ ๊ฐ€์ง€๊ณ  ์žˆ์–ด ๊ฐˆ๋“ฑ์ด ์žฆ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESTP": "ESTP๋Š” ์‹ค์šฉ์ ์ธ ์ ‘๊ทผ์„ ์„ ํ˜ธํ•˜๋Š” ๋ฐ˜๋ฉด, INTJ๋Š” ์žฅ๊ธฐ์ ์ธ ๊ณ„ํš์„ ์ค‘์‹œํ•ฉ๋‹ˆ๋‹ค."
}
},
"INTP": {
"์„ฑ๊ฒฉ": "๋…ผ๋ฆฌ์ ์ด๊ณ  ๋ถ„์„์ ์ธ ์‚ฌ๊ณ ๋ฅผ ๊ฐ€์ง„ ํ˜์‹ ๊ฐ€",
"์ง์—…": "์—ฐ๊ตฌ์›, ํ”„๋กœ๊ทธ๋ž˜๋จธ, ์ฒ ํ•™์ž",
"๊ถํ•ฉ": ["ENTJ", "ESTJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["ESFJ", "ESTP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ENTJ": "ENTJ๋Š” INTP์˜ ๋ถ„์„์  ์‚ฌ๊ณ ๋ฅผ ์ด‰์ง„ํ•˜๊ณ  ํ•จ๊ป˜ ์ „๋žต์ ์ธ ๋ชฉํ‘œ๋ฅผ ๋‹ฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESTJ": "ESTJ๋Š” INTP์˜ ๋…ผ๋ฆฌ์  ์ ‘๊ทผ์„ ์กด์ค‘ํ•˜๋ฉฐ ์‹ค์šฉ์ ์ธ ํ•ด๊ฒฐ์ฑ…์„ ์ฐพ๋Š” ๋ฐ ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ESFJ": "ESFJ๋Š” ๊ฐ์ •์ ์ธ ๊ฒฐ์ •์„ ์ค‘์‹œํ•˜๋Š” ๋ฐ˜๋ฉด, INTP๋Š” ๋…ผ๋ฆฌ๋ฅผ ์ค‘์‹œํ•˜์—ฌ ๊ฐˆ๋“ฑ์ด ์ƒ๊ธธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESTP": "ESTP๋Š” ์ฆ‰๊ฐ์ ์ธ ํ–‰๋™์„ ์„ ํ˜ธํ•˜๋ฉฐ, INTP์˜ ๊นŠ์€ ์‚ฌ๊ณ ์™€๋Š” ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ENTJ": {
"์„ฑ๊ฒฉ": "๋Œ€๋‹ดํ•˜๊ณ  ๊ฒฐ๋‹จ๋ ฅ ์žˆ๋Š” ๋ฆฌ๋”",
"์ง์—…": "๊ธฐ์—…๊ฐ€, ๊ฒฝ์˜์ž, ๋ณ€ํ˜ธ์‚ฌ",
"๊ถํ•ฉ": ["INTP", "INTJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["INFP", "ISFP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"INTP": "INTP๋Š” ENTJ์˜ ์ „๋žต์  ์‚ฌ๊ณ ๋ฅผ ๋ณด์™„ํ•˜๋ฉฐ, ๋…ผ๋ฆฌ์  ์ ‘๊ทผ์„ ํ†ตํ•ด ๋ฌธ์ œ ํ•ด๊ฒฐ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค.",
"INTJ": "INTJ๋Š” ENTJ์™€ ํ•จ๊ป˜ ์žฅ๊ธฐ์ ์ธ ๋ชฉํ‘œ๋ฅผ ์„ค์ •ํ•˜๊ณ , ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ•๋ ฅํ•œ ํŒŒํŠธ๋„ˆ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"INFP": "INFP๋Š” ๊ฐ์ •์  ์ ‘๊ทผ์„ ์„ ํ˜ธํ•˜๋ฉฐ, ENTJ์˜ ๋ƒ‰์ •ํ•œ ๋…ผ๋ฆฌ์  ์ ‘๊ทผ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ISFP": "ISFP๋Š” ์ฆ‰ํฅ์ ์ด๊ณ  ๊ฐ์ •์ ์ธ ๊ฒฝํ–ฅ์ด ์žˆ์–ด, ENTJ์˜ ์ฒด๊ณ„์ ์ด๊ณ  ๋…ผ๋ฆฌ์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ENTP": {
"์„ฑ๊ฒฉ": "์ฐฝ์˜์ ์ด๊ณ  ๋…ผ์Ÿ์„ ์ฆ๊ธฐ๋Š” ๋น„ํ‰๊ฐ€",
"์ง์—…": "๋งˆ์ผ€ํ„ฐ, ๋ณ€ํ˜ธ์‚ฌ, ๊ธฐ์ž",
"๊ถํ•ฉ": ["INFJ", "INTJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["ISFJ", "ISTJ"],
"๊ถํ•ฉ ์„ค๋ช…": {
"INFJ": "INFJ๋Š” ENTP์˜ ์ฐฝ์˜์  ์‚ฌ๊ณ ๋ฅผ ์ดํ•ดํ•˜๋ฉฐ, ์ด์ƒ์ ์ธ ๋ชฉํ‘œ ์„ค์ •์„ ๋„์™€์ค๋‹ˆ๋‹ค.",
"INTJ": "INTJ๋Š” ENTP์™€ ํ•จ๊ป˜ ํ˜์‹ ์ ์ธ ์•„์ด๋””์–ด๋ฅผ ์‹คํ˜„ํ•˜๋Š” ๋ฐ ๊ฐ•๋ ฅํ•œ ํŒŒํŠธ๋„ˆ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ISFJ": "ISFJ๋Š” ์ „ํ†ต์ ์ด๊ณ  ๋ณด์ˆ˜์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ENTP์˜ ํ˜์‹ ์ ์ด๊ณ  ๋น„ํŒ์ ์ธ ์‚ฌ๊ณ ์™€ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ISTJ": "ISTJ๋Š” ์‹ค์šฉ์ ์ธ ์ ‘๊ทผ์„ ์„ ํ˜ธํ•˜๋ฉฐ, ENTP์˜ ์‹คํ—˜์ ์ด๊ณ  ๋ชจํ—˜์ ์ธ ์„ฑํ–ฅ๊ณผ ๊ฐˆ๋“ฑ์ด ์žˆ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"INFJ": {
"์„ฑ๊ฒฉ": "ํ†ต์ฐฐ๋ ฅ ์žˆ๊ณ  ํ—Œ์‹ ์ ์ธ ์ด์ƒ์ฃผ์˜์ž",
"์ง์—…": "์ƒ๋‹ด์‚ฌ, ์‹ฌ๋ฆฌํ•™์ž, ์ž‘๊ฐ€",
"๊ถํ•ฉ": ["ENFP", "ENTP"],
"๋‚˜์œ ๊ถํ•ฉ": ["ESTP", "ESFP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ENFP": "ENFP๋Š” INFJ์˜ ์ด์ƒ์ฃผ์˜์™€ ๊นŠ์€ ๊ฐ์ •์„ ์ดํ•ดํ•˜๊ณ  ์ด๋ฅผ ๊ฒฉ๋ คํ•ฉ๋‹ˆ๋‹ค.",
"ENTP": "ENTP๋Š” INFJ์˜ ์ฐฝ์˜์„ฑ์„ ์ž๊ทนํ•˜๊ณ , ํ˜์‹ ์ ์ธ ์•„์ด๋””์–ด๋ฅผ ์‹คํ˜„ํ•˜๋Š” ๋ฐ ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ESTP": "ESTP๋Š” ์ฆ‰๊ฐ์ ์ธ ํ–‰๋™์„ ์„ ํ˜ธํ•˜๋ฉฐ, INFJ์˜ ๊นŠ์€ ์‚ฌ๊ณ ์™€ ๊ฐ์ •์  ์ ‘๊ทผ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESFP": "ESFP๋Š” ์ฆ‰ํฅ์ ์ด๊ณ  ์™ธํ–ฅ์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, INFJ์˜ ๋‚ด์„ฑ์ ์ด๊ณ  ๊ณ„ํš์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"INFP": {
"์„ฑ๊ฒฉ": "์ด์ƒ์ ์ด๊ณ  ์ถฉ์‹คํ•œ ์ค‘์žฌ์ž",
"์ง์—…": "์˜ˆ์ˆ ๊ฐ€, ์ž‘๊ฐ€, ์ƒ๋‹ด์‚ฌ",
"๊ถํ•ฉ": ["ENFJ", "ENTJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["ESTJ", "ESFJ"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ENFJ": "ENFJ๋Š” INFP์˜ ์ด์ƒ์ฃผ์˜๋ฅผ ๊ฒฉ๋ คํ•˜๊ณ , ํ•จ๊ป˜ ๋” ๋‚˜์€ ์„ธ์ƒ์„ ๋งŒ๋“ค๊ธฐ ์œ„ํ•ด ๋…ธ๋ ฅํ•ฉ๋‹ˆ๋‹ค.",
"ENTJ": "ENTJ๋Š” INFP์˜ ์ด์ƒ์„ ํ˜„์‹ค๋กœ ๋งŒ๋“ค๊ธฐ ์œ„ํ•ด ๋…ผ๋ฆฌ์ ์ด๊ณ  ์ „๋žต์ ์ธ ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ESTJ": "ESTJ๋Š” ์‹ค์šฉ์ ์ด๊ณ  ์กฐ์ง์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, INFP์˜ ์ด์ƒ์ ์ด๊ณ  ๊ฐ์ •์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESFJ": "ESFJ๋Š” ์‚ฌํšŒ์  ๊ทœ๋ฒ”์„ ์ค‘์‹œํ•˜๋ฉฐ, INFP์˜ ๊ฐœ์„ฑ๊ณผ ๋…๋ฆฝ์„ฑ์„ ์กด์ค‘ํ•˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ENFJ": {
"์„ฑ๊ฒฉ": "์นด๋ฆฌ์Šค๋งˆ ์žˆ๊ณ  ์‚ฌ๊ต์ ์ธ ๋ฆฌ๋”",
"์ง์—…": "๊ต์‚ฌ, ์ •์น˜์ธ, ์‚ฌํšŒ์šด๋™๊ฐ€",
"๊ถํ•ฉ": ["INFP", "INFJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["ISTP", "INTP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"INFP": "INFP๋Š” ENFJ์˜ ๊ฐ์ •์  ๊นŠ์ด์™€ ์ด์ƒ์ฃผ์˜๋ฅผ ์ดํ•ดํ•˜๋ฉฐ, ํ•จ๊ป˜ ์˜๋ฏธ ์žˆ๋Š” ๋ชฉํ‘œ๋ฅผ ์ถ”๊ตฌํ•ฉ๋‹ˆ๋‹ค.",
"INFJ": "INFJ๋Š” ENFJ์™€ ํ•จ๊ป˜ ์‚ฌ๋žŒ๋“ค์„ ๋•๊ณ , ์„ธ์ƒ์„ ๋” ๋‚˜์€ ๊ณณ์œผ๋กœ ๋งŒ๋“œ๋Š” ๋ฐ ํ˜‘๋ ฅํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ISTP": "ISTP๋Š” ๋…ผ๋ฆฌ์ ์ด๊ณ  ์ฆ‰ํฅ์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ENFJ์˜ ๊ฐ์ •์ ์ด๊ณ  ๊ณ„ํš์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"INTP": "INTP๋Š” ๋…ผ๋ฆฌ์ ์ด๊ณ  ๋ถ„์„์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ENFJ์˜ ๊ฐ์ •์ ์ด๊ณ  ์‚ฌ๊ต์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ENFP": {
"์„ฑ๊ฒฉ": "์—ด์ •์ ์ด๊ณ  ์ฐฝ์˜์ ์ธ ์‚ฌ๊ณ ๋ฅผ ๊ฐ€์ง„ ์‚ฌ๋žŒ",
"์ง์—…": "์˜ˆ์ˆ ๊ฐ€, ์ž‘๊ฐ€, ๋งˆ์ผ€ํ„ฐ",
"๊ถํ•ฉ": ["INTJ", "INFJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["ISTJ", "ISFJ"],
"๊ถํ•ฉ ์„ค๋ช…": {
"INTJ": "INTJ๋Š” ENFP์˜ ์ฐฝ์˜์ ์ธ ์•„์ด๋””์–ด๋ฅผ ํ˜„์‹ค๋กœ ์‹คํ˜„ํ•˜๋Š” ๋ฐ ๋„์›€์„ ์ค๋‹ˆ๋‹ค.",
"INFJ": "INFJ๋Š” ENFP์˜ ์—ด์ •์„ ์ดํ•ดํ•˜๋ฉฐ, ํ•จ๊ป˜ ์ด์ƒ์ ์ธ ๋ชฉํ‘œ๋ฅผ ์ถ”๊ตฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ISTJ": "ISTJ๋Š” ์ „ํ†ต์ ์ด๊ณ  ์‹ค์šฉ์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ENFP์˜ ์ฐฝ์˜์ ์ด๊ณ  ๋ชจํ—˜์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ISFJ": "ISFJ๋Š” ์‚ฌํšŒ์  ๊ทœ๋ฒ”์„ ์ค‘์‹œํ•˜๋ฉฐ, ENFP์˜ ์ž์œ ๋กญ๊ณ  ๊ฐœ๋ฐฉ์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ISTJ": {
"์„ฑ๊ฒฉ": "์‹ค์šฉ์ ์ด๊ณ  ์‹ ๋ขฐํ•  ์ˆ˜ ์žˆ๋Š” ๊ด€๋ฆฌ์ธ",
"์ง์—…": "ํšŒ๊ณ„์‚ฌ, ๊ด€๋ฆฌ์ž, ๊ณต๋ฌด์›",
"๊ถํ•ฉ": ["ESFP", "ESTP"],
"๋‚˜์œ ๊ถํ•ฉ": ["ENFP", "ENTP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ESFP": "ESFP๋Š” ISTJ์˜ ์‹ค์šฉ์ ์ธ ์„ฑํ–ฅ์„ ์กด์ค‘ํ•˜๋ฉฐ, ํ•จ๊ป˜ ํ˜„์‹ค์ ์ธ ๋ชฉํ‘œ๋ฅผ ๋‹ฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESTP": "ESTP๋Š” ISTJ์˜ ์กฐ์ง์ ์ด๊ณ  ๊ณ„ํš์ ์ธ ์„ฑํ–ฅ์„ ๋ณด์™„ํ•˜๋ฉฐ, ๋น ๋ฅธ ๋ฌธ์ œ ํ•ด๊ฒฐ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ENFP": "ENFP๋Š” ์ฐฝ์˜์ ์ด๊ณ  ์ž์œ ๋กœ์šด ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ISTJ์˜ ์ „ํ†ต์ ์ด๊ณ  ๋ณด์ˆ˜์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ENTP": "ENTP๋Š” ์‹คํ—˜์ ์ด๊ณ  ๋ชจํ—˜์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ISTJ์˜ ์‹ค์šฉ์ ์ด๊ณ  ์‹ ์ค‘ํ•œ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ISFJ": {
"์„ฑ๊ฒฉ": "์„ฑ์‹คํ•˜๊ณ  ๋ฐฐ๋ ค์‹ฌ ๊นŠ์€ ๋ณดํ˜ธ์ž",
"์ง์—…": "๊ฐ„ํ˜ธ์‚ฌ, ๊ต์‚ฌ, ์‚ฌํšŒ๋ณต์ง€์‚ฌ",
"๊ถํ•ฉ": ["ESFP", "ESTP"],
"๋‚˜์œ ๊ถํ•ฉ": ["ENTP", "ENFP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ESFP": "ESFP๋Š” ISFJ์˜ ๋ฐฐ๋ ค์‹ฌ๊ณผ ์„ฑ์‹คํ•จ์„ ์กด์ค‘ํ•˜๋ฉฐ, ํ•จ๊ป˜ ๋”ฐ๋œปํ•œ ์ธ๊ฐ„๊ด€๊ณ„๋ฅผ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESTP": "ESTP๋Š” ISFJ์˜ ์„ธ์‹ฌํ•œ ์„ฑํ–ฅ์„ ๋ณด์™„ํ•˜๋ฉฐ, ํ˜„์‹ค์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ENTP": "ENTP๋Š” ์‹คํ—˜์ ์ด๊ณ  ๋น„ํŒ์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ISFJ์˜ ์ „ํ†ต์ ์ด๊ณ  ๋ณดํ˜ธ์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ENFP": "ENFP๋Š” ์ž์œ ๋กญ๊ณ  ์ฐฝ์˜์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ISFJ์˜ ์กฐ์ง์ ์ด๊ณ  ๋ณด์ˆ˜์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ESTJ": {
"์„ฑ๊ฒฉ": "์‹ค์šฉ์ ์ด๊ณ  ์กฐ์ง์ ์ธ ๊ด€๋ฆฌ์ž",
"์ง์—…": "๊ฒฝ์˜์ž, ๊ตฐ์ธ, ๊ณต๋ฌด์›",
"๊ถํ•ฉ": ["ISTP", "INTP"],
"๋‚˜์œ ๊ถํ•ฉ": ["INFP", "INFJ"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ISTP": "ISTP๋Š” ESTJ์˜ ์กฐ์ง์ ์ด๊ณ  ์‹ค์šฉ์ ์ธ ์„ฑํ–ฅ์„ ๋ณด์™„ํ•˜๋ฉฐ, ํ•จ๊ป˜ ํšจ์œจ์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ์„ ๋„๋ชจํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"INTP": "INTP๋Š” ESTJ์˜ ๋…ผ๋ฆฌ์  ์‚ฌ๊ณ ๋ฅผ ๋ณด์™„ํ•˜๋ฉฐ, ์ „๋žต์ ์ธ ๋ชฉํ‘œ ๋‹ฌ์„ฑ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"INFP": "INFP๋Š” ์ด์ƒ์ ์ด๊ณ  ๊ฐ์ •์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ESTJ์˜ ์‹ค์šฉ์ ์ด๊ณ  ๋…ผ๋ฆฌ์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"INFJ": "INFJ๋Š” ๊ฐ์ •์ ์ด๊ณ  ๋‚ด์„ฑ์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ESTJ์˜ ์™ธํ–ฅ์ ์ด๊ณ  ์‹ค์šฉ์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ESFJ": {
"์„ฑ๊ฒฉ": "์‚ฌ๊ต์ ์ด๊ณ  ํ˜‘๋ ฅ์ ์ธ ์ง€์›์ž",
"์ง์—…": "๊ต์‚ฌ, ๊ฐ„ํ˜ธ์‚ฌ, ์ด๋ฒคํŠธ ํ”Œ๋ž˜๋„ˆ",
"๊ถํ•ฉ": ["ISFP", "ISTP"],
"๋‚˜์œ ๊ถํ•ฉ": ["INTP", "INTJ"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ISFP": "ISFP๋Š” ESFJ์˜ ๋ฐฐ๋ ค์‹ฌ์„ ์ดํ•ดํ•˜๋ฉฐ, ํ•จ๊ป˜ ๋”ฐ๋œปํ•œ ์ธ๊ฐ„๊ด€๊ณ„๋ฅผ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ISTP": "ISTP๋Š” ESFJ์˜ ์„ธ์‹ฌํ•จ์„ ๋ณด์™„ํ•˜๋ฉฐ, ํ˜„์‹ค์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"INTP": "INTP๋Š” ๋…ผ๋ฆฌ์ ์ด๊ณ  ๋ถ„์„์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ESFJ์˜ ๊ฐ์ •์ ์ด๊ณ  ์‚ฌ๊ต์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"INTJ": "INTJ๋Š” ์ „๋žต์ ์ด๊ณ  ์žฅ๊ธฐ์ ์ธ ๊ณ„ํš์„ ์ค‘์‹œํ•˜์—ฌ, ESFJ์˜ ์ฆ‰๊ฐ์ ์ธ ํ–‰๋™๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ISTP": {
"์„ฑ๊ฒฉ": "์œ ์—ฐํ•˜๊ณ  ์ฐฝ์˜์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ์‚ฌ",
"์ง์—…": "์—”์ง€๋‹ˆ์–ด, ๊ธฐ์ˆ ์ž, ํŒŒ์ผ๋Ÿฟ",
"๊ถํ•ฉ": ["ESFJ", "ESTJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["ENFJ", "ESFP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ESFJ": "ESFJ๋Š” ISTP์˜ ์ฐฝ์˜์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ ๋Šฅ๋ ฅ์„ ์กด์ค‘ํ•˜๋ฉฐ, ํ•จ๊ป˜ ์‹ค์šฉ์ ์ธ ๋ชฉํ‘œ๋ฅผ ๋‹ฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESTJ": "ESTJ๋Š” ISTP์˜ ์œ ์—ฐํ•จ์„ ๋ณด์™„ํ•˜๋ฉฐ, ์ฒด๊ณ„์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ENFJ": "ENFJ๋Š” ๊ฐ์ •์ ์ด๊ณ  ์‚ฌ๊ต์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ISTP์˜ ๋…ผ๋ฆฌ์ ์ด๊ณ  ๋…๋ฆฝ์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESFP": "ESFP๋Š” ์ฆ‰ํฅ์ ์ด๊ณ  ์™ธํ–ฅ์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ISTP์˜ ์‹ ์ค‘ํ•˜๊ณ  ๋ถ„์„์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ISFP": {
"์„ฑ๊ฒฉ": "์˜ˆ์ˆ ์ ์ด๊ณ  ๊ฐ๊ฐ์ ์ธ ์žฅ์ธ",
"์ง์—…": "๋””์ž์ด๋„ˆ, ์˜ˆ์ˆ ๊ฐ€, ์Œ์•…๊ฐ€",
"๊ถํ•ฉ": ["ESFJ", "ESTJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["ENTJ", "ENTP"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ESFJ": "ESFJ๋Š” ISFP์˜ ๊ฐ์ •์ ์ด๊ณ  ์˜ˆ์ˆ ์ ์ธ ์„ฑํ–ฅ์„ ์ดํ•ดํ•˜๋ฉฐ, ํ•จ๊ป˜ ๋”ฐ๋œปํ•œ ์ธ๊ฐ„๊ด€๊ณ„๋ฅผ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ESTJ": "ESTJ๋Š” ISFP์˜ ์œ ์—ฐํ•จ์„ ๋ณด์™„ํ•˜๋ฉฐ, ์‹ค์šฉ์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"ENTJ": "ENTJ๋Š” ๋…ผ๋ฆฌ์ ์ด๊ณ  ๊ณ„ํš์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ISFP์˜ ์ฆ‰ํฅ์ ์ด๊ณ  ๊ฐ์ •์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ENTP": "ENTP๋Š” ๋น„ํŒ์ ์ด๊ณ  ์‹คํ—˜์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ISFP์˜ ๊ฐ์ •์ ์ด๊ณ  ์˜ˆ์ˆ ์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ESTP": {
"์„ฑ๊ฒฉ": "๋ชจํ—˜์ ์ด๊ณ  ์ฆ‰ํฅ์ ์ธ ํ™œ๋™๊ฐ€",
"์ง์—…": "๊ธฐ์—…๊ฐ€, ์šด๋™์„ ์ˆ˜, ๊ฒฝ์ฐฐ",
"๊ถํ•ฉ": ["ISFJ", "ISTJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["INFJ", "INTJ"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ISFJ": "ISFJ๋Š” ESTP์˜ ํ™œ๋™์ ์ด๊ณ  ๋ชจํ—˜์ ์ธ ์„ฑํ–ฅ์„ ์ดํ•ดํ•˜๋ฉฐ, ํ•จ๊ป˜ ํ˜„์‹ค์ ์ธ ๋ชฉํ‘œ๋ฅผ ๋‹ฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ISTJ": "ISTJ๋Š” ESTP์˜ ์ฆ‰ํฅ์ ์ธ ์„ฑํ–ฅ์„ ๋ณด์™„ํ•˜๋ฉฐ, ์ฒด๊ณ„์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"INFJ": "INFJ๋Š” ๊ฐ์ •์ ์ด๊ณ  ๋‚ด์„ฑ์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ESTP์˜ ์™ธํ–ฅ์ ์ด๊ณ  ์ฆ‰ํฅ์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"INTJ": "INTJ๋Š” ์ „๋žต์ ์ด๊ณ  ์žฅ๊ธฐ์ ์ธ ๊ณ„ํš์„ ์ค‘์‹œํ•˜์—ฌ, ESTP์˜ ์ฆ‰๊ฐ์ ์ธ ํ–‰๋™๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
},
"ESFP": {
"์„ฑ๊ฒฉ": "์‚ฌ๊ต์ ์ด๊ณ  ์—ด์ •์ ์ธ ์—ฐ์˜ˆ์ธ",
"์ง์—…": "๋ฐฐ์šฐ, ์—ฐ์˜ˆ์ธ, ์ด๋ฒคํŠธ ํ”Œ๋ž˜๋„ˆ",
"๊ถํ•ฉ": ["ISFJ", "ISTJ"],
"๋‚˜์œ ๊ถํ•ฉ": ["INTJ", "INFJ"],
"๊ถํ•ฉ ์„ค๋ช…": {
"ISFJ": "ISFJ๋Š” ESFP์˜ ํ™œ๋ฐœํ•˜๊ณ  ์‚ฌ๊ต์ ์ธ ์„ฑํ–ฅ์„ ์ดํ•ดํ•˜๋ฉฐ, ํ•จ๊ป˜ ๋”ฐ๋œปํ•œ ์ธ๊ฐ„๊ด€๊ณ„๋ฅผ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"ISTJ": "ISTJ๋Š” ESFP์˜ ์ฆ‰ํฅ์ ์ธ ์„ฑํ–ฅ์„ ๋ณด์™„ํ•˜๋ฉฐ, ํ˜„์‹ค์ ์ธ ๋ฌธ์ œ ํ•ด๊ฒฐ์— ๋„์›€์„ ์ค๋‹ˆ๋‹ค."
},
"๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…": {
"INTJ": "INTJ๋Š” ๋…ผ๋ฆฌ์ ์ด๊ณ  ๊ณ„ํš์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ESFP์˜ ์ฆ‰ํฅ์ ์ด๊ณ  ๊ฐ์ •์ ์ธ ์„ฑํ–ฅ๊ณผ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",
"INFJ": "INFJ๋Š” ๊ฐ์ •์ ์ด๊ณ  ๋‚ด์„ฑ์ ์ธ ์„ฑํ–ฅ์ด ๊ฐ•ํ•ด, ESFP์˜ ์™ธํ–ฅ์ ์ด๊ณ  ํ™œ๋™์ ์ธ ์„ฑํ–ฅ๊ณผ ๋งž์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."
}
}
}
def calculate_mbti_responses(responses):
scores = np.zeros(16) # 16๊ฐ€์ง€ MBTI ์œ ํ˜•์— ๋Œ€ํ•œ ์ ์ˆ˜
for i, response in enumerate(responses):
if response == "๋งค์šฐ ๊ทธ๋ ‡๋‹ค":
scores += np.random.randint(5, 10, size=16)
elif response == "๊ทธ๋ ‡๋‹ค":
scores += np.random.randint(2, 5, size=16)
elif response == "๋ณดํ†ต์ด๋‹ค":
scores += np.random.randint(0, 2, size=16)
elif response == "์•„๋‹ˆ๋‹ค":
scores -= np.random.randint(2, 5, size=16)
elif response == "๋งค์šฐ ์•„๋‹ˆ๋‹ค":
scores -= np.random.randint(5, 10, size=16)
best_match_index = np.argmax(scores)
second_best_match_index = np.argsort(scores)[-2] # ๋‘ ๋ฒˆ์งธ๋กœ ๋†’์€ ์ ์ˆ˜์˜ ์ธ๋ฑ์Šค
# ๊ฐ€์žฅ ๋†’์€ ์ ์ˆ˜์™€ ๋‘ ๋ฒˆ์งธ๋กœ ๋†’์€ ์ ์ˆ˜์˜ ์ฐจ์ด
score_difference = scores[best_match_index] - scores[second_best_match_index]
# ์‹ ๋ขฐ๋„๋ฅผ ์ ์ˆ˜ ์ฐจ์ด์— ๋”ฐ๋ผ ๊ณ„์‚ฐ
if score_difference > 15:
percentage = 95 + np.random.randint(0, 5) # ๋งค์šฐ ๋†’์€ ์‹ ๋ขฐ๋„
elif score_difference > 10:
percentage = 85 + np.random.randint(0, 10) # ๋†’์€ ์‹ ๋ขฐ๋„
elif score_difference > 5:
percentage = 75 + np.random.randint(0, 10) # ์ค‘๊ฐ„ ์‹ ๋ขฐ๋„
else:
percentage = 60 + np.random.randint(0, 15) # ๋‚ฎ์€ ์‹ ๋ขฐ๋„
best_match_type = list(mbti_types.keys())[best_match_index]
return best_match_type, percentage
# Gradio UI ๊ตฌ์„ฑ
def mbti_quiz(*responses):
mbti_type, percentage = calculate_mbti_responses(responses)
result = f"๋‹น์‹ ์˜ MBTI ์œ ํ˜•์€ {mbti_type}์ž…๋‹ˆ๋‹ค. ์‹ ๋ขฐ๋„: {percentage:.2f}%"
details = mbti_types[mbti_type]
result += f"\n\n์„ฑ๊ฒฉ ์„ค๋ช…: {details['์„ฑ๊ฒฉ']}"
result += f"\n์ถ”์ฒœ ์ง์—…: {details['์ง์—…']}"
# ์ข‹์€ ๊ถํ•ฉ ์„ค๋ช… ์ถ”๊ฐ€
good_matches = details['๊ถํ•ฉ']
good_explanations = details['๊ถํ•ฉ ์„ค๋ช…']
result += f"\n\n์ข‹์€ ๊ถํ•ฉ:"
for match in good_matches:
result += f"\n- {match}: {good_explanations[match]}"
# ๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช… ์ถ”๊ฐ€
bad_matches = details['๋‚˜์œ ๊ถํ•ฉ']
bad_explanations = details['๋‚˜์œ ๊ถํ•ฉ ์„ค๋ช…']
result += f"\n\n๋‚˜์œ ๊ถํ•ฉ:"
for match in bad_matches:
result += f"\n- {match}: {bad_explanations[match]}"
# ์ด๋ฏธ์ง€ ํŒŒ์ผ ๊ฒฝ๋กœ ์ถ”๊ฐ€
image_path = f"./{mbti_type}.webp"
return result, image_path
# Gradio UI ๊ตฌ์„ฑ
def display_results(text, image):
return text, image
inputs = [gr.Radio(["๋งค์šฐ ๊ทธ๋ ‡๋‹ค", "๊ทธ๋ ‡๋‹ค", "๋ณดํ†ต์ด๋‹ค", "์•„๋‹ˆ๋‹ค", "๋งค์šฐ ์•„๋‹ˆ๋‹ค"], label=question) for question in questions]
output_text = gr.Textbox(label="MBTI ๊ฒฐ๊ณผ")
output_image = gr.Image(label="์œ ํ˜• ์ด๋ฏธ์ง€")
iface = gr.Interface(fn=mbti_quiz, inputs=inputs, outputs=[output_text, output_image], title="MBTI ์„ฑ๊ฒฉ ์œ ํ˜• ํ…Œ์ŠคํŠธ", description="20๊ฐœ ์ด์ƒ์˜ ์งˆ๋ฌธ์„ ํ†ตํ•ด MBTI ์„ฑ๊ฒฉ ์œ ํ˜•์„ ๋ถ„์„ํ•˜์„ธ์š”.")
iface.launch()