Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,9 @@ import numpy as np
|
|
| 3 |
from transformers import BertTokenizer, BertForSequenceClassification
|
| 4 |
import torch
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
@st.cache_resource
|
| 7 |
def get_model():
|
| 8 |
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
|
|
|
|
| 3 |
from transformers import BertTokenizer, BertForSequenceClassification
|
| 4 |
import torch
|
| 5 |
|
| 6 |
+
# Add title
|
| 7 |
+
st.title("Toxic Comment Classification")
|
| 8 |
+
|
| 9 |
@st.cache_resource
|
| 10 |
def get_model():
|
| 11 |
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
|