Spaces:
Sleeping
Sleeping
paragon-analytics
commited on
Commit
•
b335787
1
Parent(s):
6212fa9
Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,7 @@ def adr_predict(x):
|
|
45 |
|
46 |
med = med_score(classifier(x+str("There is a medication."))[0])
|
47 |
|
48 |
-
return {"Severe Reaction": float(scores.numpy()[1]), "Non-severe Reaction": float(scores.numpy()[0])}, local_plot,
|
49 |
-
{"Contains Medication": float(med), "No Medications": float(1-med)}
|
50 |
|
51 |
|
52 |
def main(prob1):
|
|
|
45 |
|
46 |
med = med_score(classifier(x+str("There is a medication."))[0])
|
47 |
|
48 |
+
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)}
|
|
|
49 |
|
50 |
|
51 |
def main(prob1):
|