satish99017 commited on
Commit
c72a1e3
·
1 Parent(s): 88b3079
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ import streamlit as st
3
+
4
+ distilled_student_sentiment_classifier = pipeline(
5
+ model="lxyuan/distilbert-base-multilingual-cased-sentiments-student",
6
+ return_all_scores=True
7
+ )
8
+
9
+ text = st.text_area("Enter some text:")
10
+
11
+ if text:
12
+ out = distilled_student_sentiment_classifier(text)
13
+ st.json(out)