RuudVelo commited on
Commit
cbac022
·
1 Parent(s): b94418a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
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")
@@ -35,8 +35,8 @@ tokenizer = BertTokenizer.from_pretrained("RuudVelo/dutch_news_clf_bert_finetune
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
 
 
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")
 
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