Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ description = "Pumpkinize your head. Upload an image with a face, or click on on
|
|
| 87 |
article = "<hr><p style='text-align: center'>See the <a href='https://github.com/justinpinkney/pix2pixHD' target='_blank'>Github Repo</a></p><p>The \"Pumpkin Head\" 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']]
|
| 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>The \"Pumpkin Head\" 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']]
|
| 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()
|