app_1 / app.py
ggureung's picture
Update app.py
339ebb3 verified
raw
history blame
444 Bytes
from transformers import pipeline
import gradio as gr
sentiment = pipeline("sentiment-analysis")
def sentiment_getter(input_text):
return sentiment(input_text)
iface = gr.Interface(fn = sentiment_getter,
inputs = 'text',
outputs = ["text"],
title = "sentiment analysis" ,
description = "this app is anlyze out sentence and give the results")
iface.launch()