Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,8 +91,8 @@ def adr_predict(x):
|
|
91 |
|
92 |
htext += x[prev_end:]
|
93 |
|
94 |
-
return {"Severe Reaction": float(scores.numpy()[1]), "Non-severe Reaction": float(scores.numpy()[0])}, local_plot,htext
|
95 |
-
# ,{"Contains Medication": float(med), "No Medications": float(1-med)} , {"Contains Symptoms": float(sym), "No Symptoms": float(1-sym)}
|
96 |
|
97 |
def main(prob1):
|
98 |
text = str(prob1).lower()
|
|
|
91 |
|
92 |
htext += x[prev_end:]
|
93 |
|
94 |
+
return {"Severe Reaction": float(scores.numpy()[1]), "Non-severe Reaction": float(scores.numpy()[0])}, local_plot,htext
|
95 |
+
# ,{"Contains Medication": float(med), "No Medications": float(1-med)} , {"Contains Symptoms": float(sym), "No Symptoms": float(1-sym)}
|
96 |
|
97 |
def main(prob1):
|
98 |
text = str(prob1).lower()
|