doublelotus's picture
Update app.py
3e4b279
raw
history blame contribute delete
233 Bytes
import gradio as gr
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
def sentimental(text):
return classifier(text)
iface = gr.Interface(fn=sentimental, inputs="text", outputs="text")
iface.launch()