File size: 558 Bytes
824ed3d
 
0932115
 
824ed3d
 
 
1
2
3
4
5
6
7
import gradio as gr

title = "Sentiment Analyzer 3 -- BART-Large-MNLI"
description = "Input text and submit. The machine will categorize the text according to star ratings with 1 star representing negative sentiment and five stars representing positive sentiment. The machine also presents a percentage prediction."
examples = [["This is the best coffee ever!"], ["This is the worst town I've ever been to!"]]

gr.Interface.load("huggingface/nlptown/bert-base-multilingual-uncased-sentiment", title=title, description=description, examples=examples).launch()