SSamson commited on
Commit
324c280
·
verified ·
1 Parent(s): af8a331

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,8 +1,8 @@
1
- import pandas as pd
2
- from sklearn.model_selection import train_test_split
3
- from sklearn.preprocessing import StandardScaler
4
- from transformers import BertTokenizer, BertForSequenceClassification, Trainer, TrainingArguments
5
- import torch
6
 
7
  # Step 1: Data Collection and Preprocessing
8
  # Load the dataset
 
1
+ # Load model directly
2
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
3
+
4
+ tokenizer = AutoTokenizer.from_pretrained("google-bert/bert-base-uncased")
5
+ model = AutoModelForMaskedLM.from_pretrained("google-bert/bert-base-uncased")
6
 
7
  # Step 1: Data Collection and Preprocessing
8
  # Load the dataset