nightfury commited on
Commit
18b8b5e
1 Parent(s): e71a1e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -14,10 +14,10 @@ from pytorch_grad_cam.utils.image import show_cam_on_image
14
  #ai-pict-detect
15
  from transformers import pipeline
16
 
17
- from typing import Iterable
18
- from gradio.themes.base import Base
19
- from gradio.themes.utils import colors, fonts, sizes
20
- import time
21
 
22
  '''
23
  class Seafoam(Base):
@@ -74,9 +74,11 @@ class Seafoam(Base):
74
  my_theme = Seafoam()
75
  '''
76
 
77
- my_theme = gr.Theme.from_hub("gradio/seafoam")
 
 
 
78
 
79
- gr.themes.Glass()
80
  #gr.themes.builder()
81
 
82
 
@@ -229,7 +231,7 @@ interface2 = gr.Interface(
229
  article = article1
230
  )
231
  '''
232
-
233
  gr.TabbedInterface(
234
  [interface1, interface2], ["Deepfake Image Detection", "AI Image Detection"]
235
  ).launch() #share=True)
 
14
  #ai-pict-detect
15
  from transformers import pipeline
16
 
17
+ #from typing import Iterable
18
+ #from gradio.themes.base import Base
19
+ #from gradio.themes.utils import colors, fonts, sizes
20
+ #import time
21
 
22
  '''
23
  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
 
 
82
  #gr.themes.builder()
83
 
84
 
 
231
  article = article1
232
  )
233
  '''
234
+
235
  gr.TabbedInterface(
236
  [interface1, interface2], ["Deepfake Image Detection", "AI Image Detection"]
237
  ).launch() #share=True)