nornorr commited on
Commit
4eba561
·
1 Parent(s): b8f0cb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- classifier = pipeline("question-answering", model="tiny-random-gptj-for-question-answering")
5
  def main():
6
- st.title("question-answering")
7
 
8
  with st.form("text_field"):
9
  text = st.text_area('enter some text:')
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
+ classifier = pipeline("text-classification", model="DistilBERT base uncased finetuned SST-2")
5
  def main():
6
+ st.title("Text-classification")
7
 
8
  with st.form("text_field"):
9
  text = st.text_area('enter some text:')