Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from transformers import pipeline
|
|
10 |
|
11 |
# Use PyTorch
|
12 |
pipe = pipeline("sentiment-analysis", framework="pt")
|
13 |
-
text=st.
|
14 |
-
if text:
|
15 |
-
|
16 |
-
|
|
|
10 |
|
11 |
# Use PyTorch
|
12 |
pipe = pipeline("sentiment-analysis", framework="pt")
|
13 |
+
text = st.text_area("Enter some text")
|
14 |
+
if text:
|
15 |
+
out=pipe(text)
|
16 |
+
st.json(out)
|