init app
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import transformers
|
3 |
+
from transformers import pipeline
|
4 |
+
|
5 |
+
pipe= pipeline('sentiment-analysis')
|
6 |
+
|
7 |
+
text = st.textarea('Enter some text')
|
8 |
+
|
9 |
+
if text:
|
10 |
+
out= pipe(text)
|
11 |
+
st.json(out)
|
12 |
+
|