Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
def sentiment_funtion(text):
|
5 |
-
model = pipeline("
|
6 |
output = model(text)[0]
|
7 |
label = output["label"]
|
8 |
score = output["score"]
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
def sentiment_funtion(text):
|
5 |
+
model = pipeline("sentiment-analysis", model="stevhliu/my_awesome_model")
|
6 |
output = model(text)[0]
|
7 |
label = output["label"]
|
8 |
score = output["score"]
|