nightfury commited on
Commit
e71a1e1
1 Parent(s): 7dcd902

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -19,7 +19,7 @@ from gradio.themes.base import Base
19
  from gradio.themes.utils import colors, fonts, sizes
20
  import time
21
 
22
-
23
  class Seafoam(Base):
24
  def __init__(
25
  self,
@@ -71,8 +71,12 @@ class Seafoam(Base):
71
  button_large_padding="32px",
72
  )
73
 
74
- seafoam = Seafoam()
75
- #gr.themes.Soft()
 
 
 
 
76
  #gr.themes.builder()
77
 
78
 
@@ -184,7 +188,7 @@ interface1 = gr.Interface(
184
  gr.outputs.Image(label="Face with Explainability", type="pil")
185
  #ValueError: Invalid value for parameter `type`: auto. Please choose from one of: ['numpy', 'pil', 'filepath']
186
  ],
187
- theme = seafoam, #gr.themes.Soft(),
188
  title = title,
189
  description = description,
190
  article = article
@@ -203,7 +207,7 @@ NOTE:
203
  - Images scoring as very probably artificial (e.g. 90% or higher) could be referred to a human expert for further investigation, if needed.
204
  """
205
 
206
- interface2 = gr.Interface(fn=image_classifier, inputs=gr.Image(type="pil"), outputs="label", theme = seafoam, title=title1, description=description1, article = article1)
207
  #demo.launch(show_api=False)
208
 
209
  '''
 
19
  from gradio.themes.utils import colors, fonts, sizes
20
  import time
21
 
22
+ '''
23
  class Seafoam(Base):
24
  def __init__(
25
  self,
 
71
  button_large_padding="32px",
72
  )
73
 
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
 
 
188
  gr.outputs.Image(label="Face with Explainability", type="pil")
189
  #ValueError: Invalid value for parameter `type`: auto. Please choose from one of: ['numpy', 'pil', 'filepath']
190
  ],
191
+ theme = my_theme, #gr.themes.Soft(),
192
  title = title,
193
  description = description,
194
  article = article
 
207
  - Images scoring as very probably artificial (e.g. 90% or higher) could be referred to a human expert for further investigation, if needed.
208
  """
209
 
210
+ interface2 = gr.Interface(fn=image_classifier, inputs=gr.Image(type="pil"), outputs="label", theme = my_theme, title=title1, description=description1, article = article1)
211
  #demo.launch(show_api=False)
212
 
213
  '''