Update app2.py
Browse files
app2.py
CHANGED
@@ -115,13 +115,13 @@ def predict_survival(densites, diametres):
|
|
115 |
if (pred[0]<pred[1]):
|
116 |
html = (
|
117 |
"<div style='max-width:100%; color:green; font-size: 20px; background-color:white; text-align:center; max-height:360px; overflow:auto'>"
|
118 |
-
+ "<br> <br> Vous pouvez poser l'implant (précison :"+str(int(pred[1]*100))+"%)<br> <br>"
|
119 |
+ "</div>"
|
120 |
)
|
121 |
else:
|
122 |
html = (
|
123 |
"<div style='max-width:100%; color:red; font-size: 20px; background-color:white; text-align:center; max-height:360px; overflow:auto'>"
|
124 |
-
+ "<br> <br> Vous ne pouvez pas poser l'implant (précison :"+str(int(pred[0]*100))+"%)<br> <br>"
|
125 |
+ "</div>"
|
126 |
)
|
127 |
|
|
|
115 |
if (pred[0]<pred[1]):
|
116 |
html = (
|
117 |
"<div style='max-width:100%; color:green; font-size: 20px; background-color:white; text-align:center; max-height:360px; overflow:auto'>"
|
118 |
+
+ "<br> <br> Vous pouvez poser l'implant (précison : "+str(int(pred[1]*100))+"%)<br> <br>"
|
119 |
+ "</div>"
|
120 |
)
|
121 |
else:
|
122 |
html = (
|
123 |
"<div style='max-width:100%; color:red; font-size: 20px; background-color:white; text-align:center; max-height:360px; overflow:auto'>"
|
124 |
+
+ "<br> <br> Vous ne pouvez pas poser l'implant (précison : "+str(int(pred[0]*100))+"%)<br> <br>"
|
125 |
+ "</div>"
|
126 |
)
|
127 |
|