Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import torch
|
|
3 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
4 |
|
5 |
# Load the model and tokenizer
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
7 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
8 |
|
9 |
# Function to classify input text
|
10 |
def classify_text(text):
|
|
|
3 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
4 |
|
5 |
# Load the model and tokenizer
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("willco-afk/my-model-name")
|
7 |
+
model = AutoModelForSequenceClassification.from_pretrained("willco-afk/my-model-name")
|
8 |
|
9 |
# Function to classify input text
|
10 |
def classify_text(text):
|