sapthesh commited on
Commit
5518c03
·
verified ·
1 Parent(s): cacdf0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")