File size: 479 Bytes
ea3c1f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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