Maddy90 commited on
Commit
d2723f6
·
verified ·
1 Parent(s): 95fb164

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,6 +3,8 @@ Use Auto-tokenizer
3
  import streamlit as st
4
  from transformers import pipeline
5
 
 
 
6
 
7
  if text:
8
  out = pipe(text)
 
3
  import streamlit as st
4
  from transformers import pipeline
5
 
6
+ pipe = pipeline('sentiment analysis')
7
+ text = st.text_area('Enter some text!')
8
 
9
  if text:
10
  out = pipe(text)