Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -129,14 +129,17 @@ article = "<hr><p style='text-align: center'>See the <a href='https://github.com
|
|
129 |
|
130 |
examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg'],['Example00005.jpg'], ['Example00006.jpg']]
|
131 |
|
132 |
-
gr.Interface(
|
133 |
inference,
|
134 |
-
gr.
|
135 |
-
gr.
|
136 |
title=title,
|
137 |
description=description,
|
138 |
article=article,
|
139 |
examples=examples,
|
140 |
enable_queue=True,
|
141 |
allow_flagging=False
|
142 |
-
)
|
|
|
|
|
|
|
|
129 |
|
130 |
examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg'],['Example00005.jpg'], ['Example00006.jpg']]
|
131 |
|
132 |
+
demo = gr.Interface(
|
133 |
inference,
|
134 |
+
inputs=[gr.Image(type="pil", label="Input")],
|
135 |
+
outputs=[gr.Image(type="pil", label="Output")],
|
136 |
title=title,
|
137 |
description=description,
|
138 |
article=article,
|
139 |
examples=examples,
|
140 |
enable_queue=True,
|
141 |
allow_flagging=False
|
142 |
+
)
|
143 |
+
|
144 |
+
demo.queue()
|
145 |
+
demo.launch()
|