nightfury commited on
Commit
143d086
1 Parent(s): f0cf3e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -111,9 +111,6 @@ title = "Deepfake Image Detection"
111
  description = "~ AI - ML implementation for fake and real image detection..."
112
  article = "<p style='text-align: center'>...</p>"
113
 
114
- #demo = gr.Interface(fn=image_classifier, inputs=gr.Image(type="pil"), outputs="label", title=title, description=description)
115
- #demo.launch(show_api=False)
116
-
117
  #interface
118
 
119
  interface1 = gr.Interface(
@@ -147,6 +144,10 @@ NOTE:
147
  - Images scoring as very probably artificial (e.g. 90% or higher) could be referred to a human expert for further investigation, if needed.
148
  """
149
 
 
 
 
 
150
  interface2 = gr.Interface(
151
  fn=image_classifier,
152
  inputs=[
@@ -164,6 +165,7 @@ interface2 = gr.Interface(
164
  description = description1,
165
  article = article1
166
  )
 
167
 
168
  gr.TabbedInterface(
169
  [interface1, interface2], ["Deepfake Image Detection", "AI Image Detection"]
 
111
  description = "~ AI - ML implementation for fake and real image detection..."
112
  article = "<p style='text-align: center'>...</p>"
113
 
 
 
 
114
  #interface
115
 
116
  interface1 = gr.Interface(
 
144
  - Images scoring as very probably artificial (e.g. 90% or higher) could be referred to a human expert for further investigation, if needed.
145
  """
146
 
147
+ interface2 = gr.Interface(fn=image_classifier, inputs=gr.Image(type="pil"), outputs="label", title=title1, description=description1, article = article1)
148
+ #demo.launch(show_api=False)
149
+
150
+ '''
151
  interface2 = gr.Interface(
152
  fn=image_classifier,
153
  inputs=[
 
165
  description = description1,
166
  article = article1
167
  )
168
+ '''
169
 
170
  gr.TabbedInterface(
171
  [interface1, interface2], ["Deepfake Image Detection", "AI Image Detection"]