leewatson's picture
Upload 4 files
ea3c1f8 verified
raw
history blame contribute delete
479 Bytes
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