ciivam commited on
Commit
3be6680
·
verified ·
1 Parent(s): 416f55b

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -2
pipeline.py CHANGED
@@ -144,9 +144,9 @@ def deepfakes_video_predict(input_video):
144
  text = ""
145
 
146
  if real_mean >= 0.6:
147
- text = "The video is REAL."
148
  else:
149
- text = "The video is FAKE."
150
 
151
  return text
152
 
 
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)) + "%"
150
 
151
  return text
152