Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,9 @@ import torch
|
|
| 4 |
|
| 5 |
access_token = st.secrets["access_token"]
|
| 6 |
|
| 7 |
-
pipe = pipeline("
|
| 8 |
text = st.text_area("Enter a sentence !!!")
|
| 9 |
|
| 10 |
if text:
|
| 11 |
-
out = pipe(text
|
| 12 |
st.json(out)
|
|
|
|
| 4 |
|
| 5 |
access_token = st.secrets["access_token"]
|
| 6 |
|
| 7 |
+
pipe = pipeline("sentiment-analysis", token=access_token)
|
| 8 |
text = st.text_area("Enter a sentence !!!")
|
| 9 |
|
| 10 |
if text:
|
| 11 |
+
out = pipe(text)
|
| 12 |
st.json(out)
|