Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
108 |
-
description="ππ³",
|
109 |
inputs=inputs,
|
110 |
outputs=outputs,
|
|
|
|
|
111 |
examples=[[Image.new("RGB", (224, 224))]],
|
112 |
theme="default",
|
|
|
113 |
)
|
114 |
|
115 |
-
interface.interface.
|
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()
|