Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|