sammyblues commited on
Commit
559b71e
·
verified ·
1 Parent(s): 8b91f63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -28,15 +28,12 @@ def predict_image(img):
28
  # Define the Gradio Interface with the desired title and description
29
 
30
  description_html = """
31
- <p>This model was trained by Rudolf Enyimba in partial fulfillment of the requirements
32
- of Solent University for the degree of MSc Artificial Intelligence and Data Science</p>
33
- <p>This model was trained to detect deepfake images.</p>
34
- <p>The model achieved an accuracy of <strong>91%</strong> on the test set.</p>
35
  <p>Upload a face image or pick from the samples below to test model accuracy</p>
36
  """
37
 
38
  # Define example images and their true labels for users to choose from
39
- example_data = ['AI POPE.jpg']
40
  custom_css = """
41
  div {background-color: whitesmoke;}
42
  """
@@ -48,6 +45,5 @@ gr.Interface(
48
  title="Deepfake Image Detection(CNN)",
49
  description=description_html,
50
  allow_flagging='never',
51
- examples=example_data,
52
  css=custom_css
53
  ).launch()
 
28
  # Define the Gradio Interface with the desired title and description
29
 
30
  description_html = """
31
+
 
 
 
32
  <p>Upload a face image or pick from the samples below to test model accuracy</p>
33
  """
34
 
35
  # Define example images and their true labels for users to choose from
36
+
37
  custom_css = """
38
  div {background-color: whitesmoke;}
39
  """
 
45
  title="Deepfake Image Detection(CNN)",
46
  description=description_html,
47
  allow_flagging='never',
 
48
  css=custom_css
49
  ).launch()