CSB261 commited on
Commit
022aa34
1 Parent(s): d7693e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Radio(["1", "2"], label=q))
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,