RuudVelo commited on
Commit
093cd61
1 Parent(s): 7e423f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,9 @@ from transformers import pipeline
4
  pipe = pipeline(model="RuudVelo/dutch_news_classifier_bert_finetuned")
5
  text = st.text_area('Please type/copy/paste the Dutch article')
6
 
 
 
 
7
  if text:
8
  out = pipe(text)
9
  st.json(out)
 
4
  pipe = pipeline(model="RuudVelo/dutch_news_classifier_bert_finetuned")
5
  text = st.text_area('Please type/copy/paste the Dutch article')
6
 
7
+ labels = ['Binnenland' 'Buitenland' 'Cultuur & Media' 'Economie' 'Koningshuis'
8
+ 'Opmerkelijk' 'Politiek' 'Regionaal nieuws' 'Tech']
9
+
10
  if text:
11
  out = pipe(text)
12
  st.json(out)