Spaces:
Sleeping
Sleeping
Commit
·
724eb2f
1
Parent(s):
821b025
Update app.py
Browse files
app.py
CHANGED
@@ -16,5 +16,5 @@ face2paint = torch.hub.load(
|
|
16 |
def inference(img):
|
17 |
out = face2paint(model, img)
|
18 |
return out
|
19 |
-
iface = gr.Interface(fn=inference, inputs=gr.
|
20 |
iface.launch()
|
|
|
16 |
def inference(img):
|
17 |
out = face2paint(model, img)
|
18 |
return out
|
19 |
+
iface = gr.Interface(fn=inference, inputs=gr.Image(type="pil"), outputs=gr.Image(type="pil"),examples=['gongyoo.jpeg'])
|
20 |
iface.launch()
|