Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
|
4 |
# Load the model and tokenizer
|
5 |
model_name = "deepseek-ai/DeepSeek-V3"
|
6 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
-
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
8 |
|
9 |
def classify_text(text):
|
10 |
inputs = tokenizer(text, return_tensors="pt")
|
|
|
4 |
# Load the model and tokenizer
|
5 |
model_name = "deepseek-ai/DeepSeek-V3"
|
6 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_name, trust_remote_code=True)
|
8 |
|
9 |
def classify_text(text):
|
10 |
inputs = tokenizer(text, return_tensors="pt")
|