VaultChem commited on
Commit
ec9c01d
1 Parent(s): b29f319

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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][0] >= 0.5):
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