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