nightfury commited on
Commit
6a29f7f
1 Parent(s): f21d5ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -74,8 +74,9 @@ class Seafoam(Base):
74
  my_theme = Seafoam()
75
  '''
76
 
77
- my_theme = gr.Theme.from_hub("gradio/seafoam")
78
 
 
79
  #my_theme = gr.themes.Glass()
80
  #my_theme = gr.themes.Default(primary_hue="red", secondary_hue="pink")
81
 
@@ -175,10 +176,9 @@ title1 = "Deepfake Image Detection"
175
  description1 = "~ AI - ML implementation for fake and real image detection..."
176
  article1 = "<p style='text-align: center'>...</p>"
177
 
178
- interface1 = gr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs="label", theme = my_theme, title=title1, description=description1, article = article1)
179
 
180
 
181
- '''
182
  interface1 = gr.Interface(
183
  fn=predict,
184
  inputs=[
@@ -197,7 +197,7 @@ interface1 = gr.Interface(
197
  article = article1
198
  #examples=[[examples[i]["path"], examples[i]["label"]] for i in range(10)]
199
  )
200
- '''
201
 
202
  title2 = "AI Generated Image Detection"
203
  description2 = "~ AI - ML implementation for AI image detection using older models such as VQGAN+CLIP."
 
74
  my_theme = Seafoam()
75
  '''
76
 
77
+ #my_theme = gr.Theme.from_hub("gradio/seafoam")
78
 
79
+ my_theme = gr.themes.Monochrome()
80
  #my_theme = gr.themes.Glass()
81
  #my_theme = gr.themes.Default(primary_hue="red", secondary_hue="pink")
82
 
 
176
  description1 = "~ AI - ML implementation for fake and real image detection..."
177
  article1 = "<p style='text-align: center'>...</p>"
178
 
179
+ #interface1 = gr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs="label", theme = my_theme, title=title1, description=description1, article = article1)
180
 
181
 
 
182
  interface1 = gr.Interface(
183
  fn=predict,
184
  inputs=[
 
197
  article = article1
198
  #examples=[[examples[i]["path"], examples[i]["label"]] for i in range(10)]
199
  )
200
+
201
 
202
  title2 = "AI Generated Image Detection"
203
  description2 = "~ AI - ML implementation for AI image detection using older models such as VQGAN+CLIP."