Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
import os
|
2 |
-
#os.system("pip install --upgrade pip")
|
3 |
-
#os.system("pip install gradio==2.5.3")
|
4 |
import onnxruntime as rt
|
5 |
import sys
|
6 |
import PIL
|
@@ -22,9 +20,6 @@ print("input_name = " + str(input_name))
|
|
22 |
output_name = session.get_outputs()[0].name
|
23 |
print("output_name = " + str(output_name))
|
24 |
|
25 |
-
import os
|
26 |
-
os.system("pip install cmake")
|
27 |
-
os.system("pip install dlib")
|
28 |
import face_detection
|
29 |
|
30 |
def array_to_image(array_in):
|
@@ -94,8 +89,8 @@ article = "<hr><p style='text-align: center'>See the <a href='https://github.com
|
|
94 |
examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg'],['Example00005.jpg'], ['Example00006.jpg']]
|
95 |
gr.Interface(
|
96 |
inference,
|
97 |
-
gr.
|
98 |
-
gr.
|
99 |
title=title,
|
100 |
description=description,
|
101 |
article=article,
|
|
|
1 |
import os
|
|
|
|
|
2 |
import onnxruntime as rt
|
3 |
import sys
|
4 |
import PIL
|
|
|
20 |
output_name = session.get_outputs()[0].name
|
21 |
print("output_name = " + str(output_name))
|
22 |
|
|
|
|
|
|
|
23 |
import face_detection
|
24 |
|
25 |
def array_to_image(array_in):
|
|
|
89 |
examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg'],['Example00005.jpg'], ['Example00006.jpg']]
|
90 |
gr.Interface(
|
91 |
inference,
|
92 |
+
inputs=[gr.Image(type="pil", label="Input")],
|
93 |
+
outputs=[gr.Image(type="pil", label="Output")],
|
94 |
title=title,
|
95 |
description=description,
|
96 |
article=article,
|