msbeigi commited on
Commit
84571a5
·
1 Parent(s): ebffbc5

create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ import streamlit as st
3
+
4
+ pipe=pipeline('sentiment-analysis',device=-1)
5
+ # classifier('I liked this idea!')
6
+ text=st.text_area('enter some text')
7
+
8
+ if text:
9
+ out=pipe(text)
10
+ st.json(out)
11
+