Spaces:
Runtime error
Runtime error
paragon-analytics
commited on
Commit
•
1460b1f
1
Parent(s):
4dfba43
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def adr_predict(x):
|
|
53 |
local_plot = shap.plots.text(shap_values[0], display=False)
|
54 |
|
55 |
med = med_score(classifier(x+str(", There is a medication."))[0])
|
56 |
-
|
57 |
|
58 |
return {"Severe Reaction": float(scores.numpy()[1]), "Non-severe Reaction": float(scores.numpy()[0])}, local_plot, {"Contains Medication": float(med), "No Medications": float(1-med)} , {"Contains Symptoms": float(sym), "No Symptoms": float(1-sym)}
|
59 |
|
|
|
53 |
local_plot = shap.plots.text(shap_values[0], display=False)
|
54 |
|
55 |
med = med_score(classifier(x+str(", There is a medication."))[0])
|
56 |
+
sym = sym_score(classifier(x+str(", There is a symptom."))[0])
|
57 |
|
58 |
return {"Severe Reaction": float(scores.numpy()[1]), "Non-severe Reaction": float(scores.numpy()[0])}, local_plot, {"Contains Medication": float(med), "No Medications": float(1-med)} , {"Contains Symptoms": float(sym), "No Symptoms": float(1-sym)}
|
59 |
|