Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
import torch
|
4 |
import matplotlib.pyplot as plt
|
|
|
|
|
5 |
|
6 |
#pipe = pipeline(model="RuudVelo/dutch_news_classifier_bert_finetuned")
|
7 |
#text = st.text_area('Please type/copy/paste the Dutch article')
|
@@ -33,6 +35,9 @@ tokenizer = BertTokenizer.from_pretrained("RuudVelo/dutch_news_clf_bert_finetune
|
|
33 |
# Title
|
34 |
st.title("Dutch news article classification")
|
35 |
|
|
|
|
|
|
|
36 |
text = st.text_area('Please type/copy/paste text of the Dutch article')
|
37 |
|
38 |
#if text:
|
|
|
2 |
from transformers import pipeline
|
3 |
import torch
|
4 |
import matplotlib.pyplot as plt
|
5 |
+
from PIL import Image
|
6 |
+
|
7 |
|
8 |
#pipe = pipeline(model="RuudVelo/dutch_news_classifier_bert_finetuned")
|
9 |
#text = st.text_area('Please type/copy/paste the Dutch article')
|
|
|
35 |
# Title
|
36 |
st.title("Dutch news article classification")
|
37 |
|
38 |
+
image = Image.open('dataset-cover_articles.jpg')
|
39 |
+
st.image(image,=)# caption='Artic')
|
40 |
+
|
41 |
text = st.text_area('Please type/copy/paste text of the Dutch article')
|
42 |
|
43 |
#if text:
|