Ron0420 commited on
Commit
c6a0157
1 Parent(s): c185b5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -9,24 +9,15 @@ import numpy as np
9
  import os
10
  import zipfile
11
 
12
-
13
  local_zip = "FINAL-EFFICIENTNETV2-B0.zip"
14
  zip_ref = zipfile.ZipFile(local_zip, 'r')
15
  zip_ref.extractall('FINAL-EFFICIENTNETV2-B0')
16
  zip_ref.close()
17
 
18
- local_zip = "deepfakes-test-images.zip"
19
- zip_ref = zipfile.ZipFile(local_zip, 'r')
20
- zip_ref.extractall('deepfakes-test-images')
21
- zip_ref.close()
22
-
23
-
24
  model = tf.keras.models.load_model("FINAL-EFFICIENTNETV2-B0")
25
 
26
-
27
  detector = MTCNN()
28
 
29
-
30
  def deepfakespredict(input_img ):
31
 
32
  labels = ['real', 'fake']
 
9
  import os
10
  import zipfile
11
 
 
12
  local_zip = "FINAL-EFFICIENTNETV2-B0.zip"
13
  zip_ref = zipfile.ZipFile(local_zip, 'r')
14
  zip_ref.extractall('FINAL-EFFICIENTNETV2-B0')
15
  zip_ref.close()
16
 
 
 
 
 
 
 
17
  model = tf.keras.models.load_model("FINAL-EFFICIENTNETV2-B0")
18
 
 
19
  detector = MTCNN()
20
 
 
21
  def deepfakespredict(input_img ):
22
 
23
  labels = ['real', 'fake']