Spaces:
Runtime error
Runtime error
Alex Korolev
commited on
Commit
•
72e2dc2
1
Parent(s):
59e8a35
initial
Browse files- app.py +8 -0
- requirements.txt +0 -0
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
classifier = pipeline('sentiment-analysis')
|
5 |
+
|
6 |
+
text = st.text_area('Please enter your text ASAP!')
|
7 |
+
if text:
|
8 |
+
st.json(classifier(text))
|
requirements.txt
ADDED
File without changes
|