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