Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ description = "Style a face to look more \"Vintage\". Upload an image with a fac
|
|
87 |
article = "<hr><p style='text-align: center'>See the <a href='https://github.com/justinpinkney/pix2pixHD' target='_blank'>Github Repo</a></p><p style='text-align: center'>samples: <img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00001.jpg' alt='Sample00001'/><img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00002.jpg' alt='Sample00002'/><img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00003.jpg' alt='Sample00003'/><img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00004.jpg' alt='Sample00004'/><img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00005.jpg' alt='Sample00005'/></p><p>The \"Vintage Style\" Pix2PixHD model was trained by <a href='https://linktr.ee/Norod78' target='_blank'>Doron Adler</a></p>"
|
88 |
|
89 |
examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg'],['Example00005.jpg'], ['Example00006.jpg']]
|
90 |
-
gr.Interface(
|
91 |
inference,
|
92 |
inputs=[gr.Image(type="pil", label="Input")],
|
93 |
outputs=[gr.Image(type="pil", label="Output")],
|
@@ -95,6 +95,9 @@ gr.Interface(
|
|
95 |
description=description,
|
96 |
article=article,
|
97 |
examples=examples,
|
98 |
-
enable_queue=True,
|
99 |
allow_flagging=False
|
100 |
-
)
|
|
|
|
|
|
|
|
|
|
87 |
article = "<hr><p style='text-align: center'>See the <a href='https://github.com/justinpinkney/pix2pixHD' target='_blank'>Github Repo</a></p><p style='text-align: center'>samples: <img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00001.jpg' alt='Sample00001'/><img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00002.jpg' alt='Sample00002'/><img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00003.jpg' alt='Sample00003'/><img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00004.jpg' alt='Sample00004'/><img src='https://hf.space/gradioiframe/Norod78/VintageStyle/file/Sample00005.jpg' alt='Sample00005'/></p><p>The \"Vintage Style\" Pix2PixHD model was trained by <a href='https://linktr.ee/Norod78' target='_blank'>Doron Adler</a></p>"
|
88 |
|
89 |
examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg'],['Example00005.jpg'], ['Example00006.jpg']]
|
90 |
+
demo = gr.Interface(
|
91 |
inference,
|
92 |
inputs=[gr.Image(type="pil", label="Input")],
|
93 |
outputs=[gr.Image(type="pil", label="Output")],
|
|
|
95 |
description=description,
|
96 |
article=article,
|
97 |
examples=examples,
|
|
|
98 |
allow_flagging=False
|
99 |
+
)
|
100 |
+
|
101 |
+
|
102 |
+
demo.queue()
|
103 |
+
demo.launch()
|