Spaces:
Runtime error
Runtime error
Commit
·
01a08fe
1
Parent(s):
7536446
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
pipe= pipeline('pysentimiento/robertuito-sentiment-analysis')
|
5 |
+
|
6 |
+
text=st.text_area('enter text')
|
7 |
+
|
8 |
+
if text:
|
9 |
+
|
10 |
+
out=pipe(text)
|
11 |
+
st.json(out)
|