Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from emotion_predictor import predict_and_plot | |
| def analyze_dialogue(text): | |
| return predict_and_plot(text) | |
| iface = gr.Interface( | |
| fn=analyze_dialogue, | |
| inputs=gr.Textbox(lines=15, label="λν μ λ ₯ (νμ: νμ: λ°νλ¬Έ)"), | |
| outputs="html", | |
| title="KOTE κ°μ μμΈ‘ λ° μκ°ν", | |
| description="νμμ λ§λ λνλ₯Ό μ λ ₯νλ©΄, νμλ³ λΆμ κ°μ μμΈ‘κ³Ό μκ°ν κ²°κ³Όλ₯Ό 보μ¬μ€λλ€." | |
| ) | |
| iface.launch() | |
| #11 |