song7 commited on
Commit
ce0b9c1
1 Parent(s): b6a7579

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,11 +44,11 @@ def diagnose_mbti(input):
44
  elif not extroverted and not intuitive and not thinking and not judging:
45
  return "ISFP"
46
 
47
- diagnose_ui = gr.Function(diagnose_mbti, input_ui, "MBTI 유형 진단")
48
 
49
  def print_result(mbti):
50
  return f" tada! Your MBTI type is {mbti}."
51
 
52
- output_ui = gr.Function(print_result, diagnose_ui, "결과 출력")
53
 
54
  gr.Interface(fn=output_ui, inputs=input_ui, outputs="text").launch()
 
44
  elif not extroverted and not intuitive and not thinking and not judging:
45
  return "ISFP"
46
 
47
+ diagnose_ui = gr.Function(fn=diagnose_mbti, inputs=input_ui, outputs="text", name="MBTI 유형 진단")
48
 
49
  def print_result(mbti):
50
  return f" tada! Your MBTI type is {mbti}."
51
 
52
+ output_ui = gr.Function(fn=print_result, inputs=diagnose_ui, outputs="text", name="결과 출력")
53
 
54
  gr.Interface(fn=output_ui, inputs=input_ui, outputs="text").launch()