Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,12 @@ from transformers import pipeline
|
|
2 |
import streamlit as st
|
3 |
|
4 |
pipe = pipeline('sentiment analysis')
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
if input_text:
|
8 |
st.json(pipe(input_text))
|
|
|
2 |
import streamlit as st
|
3 |
|
4 |
pipe = pipeline('sentiment analysis')
|
5 |
+
|
6 |
+
st.write(type(pipeline))
|
7 |
+
st.write(type(pipe))
|
8 |
+
|
9 |
+
input_text = st.text_input('Enter-some text')
|
10 |
+
|
11 |
|
12 |
if input_text:
|
13 |
st.json(pipe(input_text))
|