Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ class MBTIAnalyzer:
|
|
72 |
output += f"{trait}: {percentage}%\n"
|
73 |
return output
|
74 |
|
75 |
-
def mbti_interface(answers):
|
76 |
analyzer = MBTIAnalyzer()
|
77 |
return analyzer.analyze(answers)
|
78 |
|
@@ -80,7 +80,7 @@ def mbti_interface(answers):
|
|
80 |
questions = []
|
81 |
for key in ['EI', 'SN', 'TF', 'JP']:
|
82 |
for q in MBTIAnalyzer().questions[key]:
|
83 |
-
questions.append(gr.
|
84 |
|
85 |
iface = gr.Interface(
|
86 |
fn=mbti_interface,
|
|
|
72 |
output += f"{trait}: {percentage}%\n"
|
73 |
return output
|
74 |
|
75 |
+
def mbti_interface(*answers):
|
76 |
analyzer = MBTIAnalyzer()
|
77 |
return analyzer.analyze(answers)
|
78 |
|
|
|
80 |
questions = []
|
81 |
for key in ['EI', 'SN', 'TF', 'JP']:
|
82 |
for q in MBTIAnalyzer().questions[key]:
|
83 |
+
questions.append(gr.Radio(["1", "2"], label=q))
|
84 |
|
85 |
iface = gr.Interface(
|
86 |
fn=mbti_interface,
|