nmud19 commited on
Commit
67c17bf
·
1 Parent(s): c6d5483

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -13
app.py CHANGED
@@ -43,16 +43,14 @@ def predict(image: Image):
43
  return 'coloured_image.png', 'coloured_grid.png'
44
 
45
 
46
- if __name__ == '__main__':
47
- #
48
- iface = gr.Interface(
49
- fn=predict,
50
- inputs=gr.inputs.Image(type="pil"),
51
- examples=["examples/thesis_test.png", "examples/thesis_test2.png"],
52
- outputs=["image","image"],
53
- title="Colour your sketches!",
54
- description=" Upload a sketch and the conditional gan will colour it for you!",
55
- article="WIP repo lives here - https://github.com/nmud19/thesisGAN "
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()