Spaces:
Sleeping
Sleeping
Commit ·
f2c6bfa
1
Parent(s): 795d077
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
x = st.slider('Select a value')
|
| 4 |
st.write(x, 'squared is', x * x)
|
|
|
|
| 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)
|