Spaces:
Runtime error
Runtime error
Updated UI
Browse files
app.py
CHANGED
@@ -39,5 +39,16 @@ def use(input_text):
|
|
39 |
return "That's nice! (" + str(round(round(prediction[0],2)*100,1)) + "% confidence)"
|
40 |
|
41 |
|
42 |
-
iface = gr.Interface(fn=use,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
iface.launch()
|
|
|
39 |
return "That's nice! (" + str(round(round(prediction[0],2)*100,1)) + "% confidence)"
|
40 |
|
41 |
|
42 |
+
iface = gr.Interface(fn=use,
|
43 |
+
inputs=gr.Textbox(lines=15, placeholder="Type Something Awesome..."),
|
44 |
+
outputs="text",
|
45 |
+
title="Use RSA (Review Sentiment Analysis) v0.1.2",
|
46 |
+
description="This is an NLP model that accepts a text string as input and simply outputs if the string is mean or nice. It has about 96.5% accuracy in this. It also provides you with a score of how mean or nice it is.",
|
47 |
+
article="RSA v0.1.2: @2.29M Params w/ 96.5% acc. & 388MB dataset + 1.59MB output dataset. Trained on <a href="https://www.kaggle.com/datasets/ilhamfp31/yelp-review-dataset">this Kaggle dataset</a>"
|
48 |
+
examples=[
|
49 |
+
["I went there today! The cut was terrible! I have an awful experience. They lady that cut my hair was nice but she wanted to leave early so she made a disaster in my head!"],
|
50 |
+
["Yes! Awesome soy cap, scone, and atmosphere. Nice place to hang out & read, and free WiFi with no login procedure."],
|
51 |
+
["Overpriced, salty and overrated!!! Why this place is so popular I will never understand."],
|
52 |
+
["This Valentines Day I ordered a pizza for my boyfriend and asked that they make a heart on it out of green peppers. The pizza was great, the heart was perfect, and he loved it!"]
|
53 |
+
],)
|
54 |
iface.launch()
|