Spaces:
Sleeping
Sleeping
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 |