Update pipeline.py

#1
by shivvvam - opened
Files changed (1) hide show
  1. pipeline.py +1 -1
pipeline.py CHANGED
@@ -143,7 +143,7 @@ def deepfakes_video_predict(input_video):
143
  print(f"Fake Faces: {fake_mean}")
144
  text = ""
145
 
146
- if real_mean >= 0.5:
147
  text = "The video is REAL. \n Deepfakes Confidence: " + str(round(100 - (real_mean*100), 3)) + "%"
148
  else:
149
  text = "The video is FAKE. \n Deepfakes Confidence: " + str(round(fake_mean*100, 3)) + "%"
 
143
  print(f"Fake Faces: {fake_mean}")
144
  text = ""
145
 
146
+ if real_mean >= 0.6:
147
  text = "The video is REAL. \n Deepfakes Confidence: " + str(round(100 - (real_mean*100), 3)) + "%"
148
  else:
149
  text = "The video is FAKE. \n Deepfakes Confidence: " + str(round(fake_mean*100, 3)) + "%"