Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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()
|