raj-tomar001 commited on
Commit
789d8ce
·
verified ·
1 Parent(s): ec4d0d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def load_model(model_name):
16
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
17
  return pipeline('text-classification', model=model, tokenizer=tokenizer, truncation=True, max_length=512, top_k=4)
18
 
19
- classifier = load_model("microsoft/deberta-base")
20
 
21
  # Load sample essays
22
  with open(SAMPLE_JSON_PATH, 'r') as f:
 
16
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
17
  return pipeline('text-classification', model=model, tokenizer=tokenizer, truncation=True, max_length=512, top_k=4)
18
 
19
+ classifier = load_model("./deberta-base")
20
 
21
  # Load sample essays
22
  with open(SAMPLE_JSON_PATH, 'r') as f: