Ron0420 commited on
Commit
a12cb6b
1 Parent(s): bd79c11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -131,7 +131,7 @@ def deepfakespredict(input_video):
131
  fake_ratio = fake/total
132
 
133
  text =""
134
- text2 = "Deepfakes Confidence: " + str(fake_ratio)
135
 
136
  if fake_ratio >= 0.5:
137
  text = "The video is FAKE."
@@ -155,10 +155,13 @@ title="EfficientNetV2 Deepfakes Video Detector"
155
  description="This is a demo implementation of Deepfakes Video Detector by using EfficientNetV2 on frame-by-frame detection. The accuracy may not be accurate. To use it, simply upload your video, or click one of the examples to load them."
156
 
157
  examples = [
 
 
 
 
 
158
  ['real-1.mp4'],
159
  ['fake-1.mp4'],
160
- ['Video1-fake-1-ff.mp4'],
161
- ['Video6-real-1-ff.mp4']
162
  ]
163
 
164
  demo = gr.Interface(deepfakespredict,
 
131
  fake_ratio = fake/total
132
 
133
  text =""
134
+ text2 = "Deepfakes Confidence: " + str(fake_ratio*100) + "%"
135
 
136
  if fake_ratio >= 0.5:
137
  text = "The video is FAKE."
 
155
  description="This is a demo implementation of Deepfakes Video Detector by using EfficientNetV2 on frame-by-frame detection. The accuracy may not be accurate. To use it, simply upload your video, or click one of the examples to load them."
156
 
157
  examples = [
158
+
159
+ ['Video1-fake-1-ff.mp4'],
160
+ ['Video6-real-1-ff.mp4'],
161
+ ['Video3-fake-3-ff.mp4'],
162
+ ['Video8-real-3-ff.mp4'],
163
  ['real-1.mp4'],
164
  ['fake-1.mp4'],
 
 
165
  ]
166
 
167
  demo = gr.Interface(deepfakespredict,