Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,8 @@ Use Auto-tokenizer
|
|
| 3 |
import streamlit as st
|
| 4 |
from transformers import pipeline
|
| 5 |
|
|
|
|
|
|
|
| 6 |
|
| 7 |
if text:
|
| 8 |
out = pipe(text)
|
|
|
|
| 3 |
import streamlit as st
|
| 4 |
from transformers import pipeline
|
| 5 |
|
| 6 |
+
pipe = pipeline('sentiment analysis')
|
| 7 |
+
text = st.text_area('Enter some text!')
|
| 8 |
|
| 9 |
if text:
|
| 10 |
out = pipe(text)
|