Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,16 +43,14 @@ def predict(image: Image):
|
|
| 43 |
return 'coloured_image.png', 'coloured_grid.png'
|
| 44 |
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
iface.launch()
|
| 58 |
-
#
|
|
|
|
| 43 |
return 'coloured_image.png', 'coloured_grid.png'
|
| 44 |
|
| 45 |
|
| 46 |
+
|
| 47 |
+
iface = gr.Interface(
|
| 48 |
+
fn=predict,
|
| 49 |
+
inputs=gr.inputs.Image(type="pil"),
|
| 50 |
+
examples=["examples/thesis_test.png", "examples/thesis_test2.png"],
|
| 51 |
+
outputs=["image","image"],
|
| 52 |
+
title="Colour your sketches!",
|
| 53 |
+
description=" Upload a sketch and the conditional gan will colour it for you!",
|
| 54 |
+
article="WIP repo lives here - https://github.com/nmud19/thesisGAN "
|
| 55 |
+
)
|
| 56 |
+
iface.launch()
|
|
|
|
|
|