lmastm commited on
Commit
cd38eaa
·
verified ·
1 Parent(s): 3e16169

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,9 +4,9 @@ import torch
4
 
5
  access_token = st.secrets["access_token"]
6
 
7
- pipe = pipeline("text-classification", token=access_token)
8
  text = st.text_area("Enter a sentence !!!")
9
 
10
  if text:
11
- out = pipe(text, do_sample=True, top_p=0.95)
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)