Update app.py
Browse files
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()
|