Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -191,10 +191,10 @@ def decrypt_prediction(user_id):
|
|
191 |
|
192 |
predictions = fhe_api.deserialize_decrypt_dequantize(encrypted_prediction)
|
193 |
|
194 |
-
if(predictions[0][
|
195 |
-
return "Safe file", predictions
|
196 |
else:
|
197 |
-
return "Malware", predictions
|
198 |
|
199 |
|
200 |
|
|
|
191 |
|
192 |
predictions = fhe_api.deserialize_decrypt_dequantize(encrypted_prediction)
|
193 |
|
194 |
+
if(predictions[0][1] >= 0.5):
|
195 |
+
return "Safe file with class probabilities: ", predictions
|
196 |
else:
|
197 |
+
return "Malware file with class probabilities: ", predictions
|
198 |
|
199 |
|
200 |
|