Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ ner_pipe = pipeline("ner", model=ner_model, tokenizer=ner_tokenizer, aggregation
|
|
50 |
def adr_predict(x):
|
51 |
encoded_input = tokenizer(x, return_tensors='pt')
|
52 |
output = model(**encoded_input)
|
53 |
-
scores = output[0][0].detach()
|
54 |
scores = torch.nn.functional.softmax(scores)
|
55 |
|
56 |
shap_values = explainer([str(x).lower()])
|
|
|
50 |
def adr_predict(x):
|
51 |
encoded_input = tokenizer(x, return_tensors='pt')
|
52 |
output = model(**encoded_input)
|
53 |
+
scores = output[0][0].detach()
|
54 |
scores = torch.nn.functional.softmax(scores)
|
55 |
|
56 |
shap_values = explainer([str(x).lower()])
|