Spaces:
Runtime error
Runtime error
Update pipeline.py
Browse files- 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.
|
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)) + "%"
|