Wootang01 commited on
Commit
824ed3d
1 Parent(s): 2d920f3

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "Sentiment Analyzer - BART-Large-MNLI"
4
+ description = "Input text and press control + enter. The machine will assign star ratings to the text with 1 star representing negative sentiment and five stars representing positive sentiment."
5
+ examples = [["This is the best coffee ever!"], ["This is the worst town I've ever been to!"]]
6
+
7
+ gr.Interface.load("huggingface/nlptown/bert-base-multilingual-uncased-sentiment", title=title, description=description, examples=examples).launch()