Spaces:
Sleeping
Sleeping
Commit ·
a04d457
1
Parent(s): fb47997
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from transformers import pipeline
|
| 3 |
+
pipe = pipeline('sentiment-analysis')
|
| 4 |
+
text = st.text_area('Enter some text: ')
|
| 5 |
+
if text:
|
| 6 |
+
out = pipe(text)
|
| 7 |
+
st.json(out)
|
| 8 |
+
#x = st.slider('Select a value')
|
| 9 |
+
#st.write(x, 'squared is', x * x)
|