Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from transformers import BertTokenizer
|
|
3 |
from transformers import TFBertForSequenceClassification
|
4 |
from Sastrawi.Stemmer.StemmerFactory import StemmerFactory # Import Sastrawi
|
5 |
import streamlit as st
|
|
|
|
|
6 |
|
7 |
# Fungsi untuk memuat model BERT dan tokenizer
|
8 |
PRE_TRAINED_MODEL = 'indobenchmark/indobert-base-p2'
|
|
|
3 |
from transformers import TFBertForSequenceClassification
|
4 |
from Sastrawi.Stemmer.StemmerFactory import StemmerFactory # Import Sastrawi
|
5 |
import streamlit as st
|
6 |
+
import re
|
7 |
+
from PIL import Image
|
8 |
|
9 |
# Fungsi untuk memuat model BERT dan tokenizer
|
10 |
PRE_TRAINED_MODEL = 'indobenchmark/indobert-base-p2'
|