File size: 339 Bytes
6162193
 
46e166c
0a63990
46e166c
d9a5372
0a63990
 
d9a5372
6162193
d9a5372
 
6162193
 
dca3d49
46e166c
6162193
46e166c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


import gradio as gr
from transformers import pipeline


sentiment = pipeline('sentiment-analysis')


def get_sentiment(input_text):
    return sentiment(input_text)


# Gradio 인터페이스 설정
iface = gr.Interface(fn=get_sentiment, title="Sentiment Analysis", inputs="text", outputs="text")

# 인터페이스 실행
iface.launch()