Ahsen Khaliq
commited on
Commit
·
753c25c
1
Parent(s):
e763147
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,15 +64,10 @@ import requests
|
|
| 64 |
|
| 65 |
def inference(image):
|
| 66 |
img = image
|
| 67 |
-
#face_detector = get_dlib_face_detector()
|
| 68 |
-
#landmarks = face_detector(img)
|
| 69 |
-
|
| 70 |
-
|
| 71 |
out = face2paint(img, 512)
|
| 72 |
-
|
| 73 |
return out
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
-
iface = gr.Interface(inference, "
|
| 78 |
iface.launch()
|
|
|
|
| 64 |
|
| 65 |
def inference(image):
|
| 66 |
img = image
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
out = face2paint(img, 512)
|
|
|
|
| 68 |
return out
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
+
iface = gr.Interface(inference, gr.inputs.Image(type="pil"), gr.outputs.Image(type="pil"))
|
| 73 |
iface.launch()
|