aliceblue11 commited on
Commit
244fcdd
·
verified ·
1 Parent(s): 6d5e2f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -75,6 +75,8 @@ def calculate_mbti(responses):
75
  # Gradio 인터페이스 생성
76
  def create_interface():
77
  inputs = [gr.Radio(choices=["매우 아니다", "아니다", "보통이다", "그렇다", "매우 그렇다"], label=questions[i]) for i in range(len(questions))]
 
 
78
  interface = gr.Interface(fn=calculate_mbti, inputs=inputs, outputs="text", title="MBTI 분석기", description="20개의 질문에 답하고 당신의 MBTI 유형과 그 설명을 확인하세요!")
79
  return interface
80
 
 
75
  # Gradio 인터페이스 생성
76
  def create_interface():
77
  inputs = [gr.Radio(choices=["매우 아니다", "아니다", "보통이다", "그렇다", "매우 그렇다"], label=questions[i]) for i in range(len(questions))]
78
+
79
+ # Gradio에서는 responses를 리스트로 받아 처리할 수 있도록 설정
80
  interface = gr.Interface(fn=calculate_mbti, inputs=inputs, outputs="text", title="MBTI 분석기", description="20개의 질문에 답하고 당신의 MBTI 유형과 그 설명을 확인하세요!")
81
  return interface
82