Dineth98 commited on
Commit
47ea938
·
1 Parent(s): 9d5a490

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("text-classification", model = "cross-encoder/qnli-electra-base")
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"]