suko commited on
Commit
7fa41fe
β€’
1 Parent(s): e055d7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -103,16 +103,18 @@ outputs = gr.outputs.JSON()
103
 
104
  text_element = "This model and website are created by KUO SUKO, C110156115 from NKUST"
105
 
 
106
  interface = gr.Interface(
107
- title="Naked Detector",
108
- description="πŸ†πŸ˜³",
109
  inputs=inputs,
110
  outputs=outputs,
 
 
111
  examples=[[Image.new("RGB", (224, 224))]],
112
  theme="default",
 
113
  )
114
 
115
- interface.interface.layout.footer[0].style["display"] = "none" # Hide the default footer
116
- interface.interface.layout.footer.append(gr.InterfaceText(text_element)) # Add the custom text element
117
 
118
  interface.launch()
 
103
 
104
  text_element = "This model and website are created by KUO SUKO, C110156115 from NKUST"
105
 
106
+
107
  interface = gr.Interface(
108
+ fn=predict,
 
109
  inputs=inputs,
110
  outputs=outputs,
111
+ title="Naked Detector",
112
+ description="πŸ˜³πŸ†",
113
  examples=[[Image.new("RGB", (224, 224))]],
114
  theme="default",
115
+ layout="vertical",
116
  )
117
 
118
+ interface.interface.footer = text_element
 
119
 
120
  interface.launch()