Norod78 commited on
Commit
5ca4cb7
1 Parent(s): c70dc6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -20,9 +20,6 @@ print("input_name = " + str(input_name))
20
  output_name = session.get_outputs()[0].name
21
  print("output_name = " + str(output_name))
22
 
23
- import os
24
- os.system("pip install cmake")
25
- os.system("pip install dlib")
26
  import face_detection
27
 
28
  def array_to_image(array_in):
@@ -92,8 +89,8 @@ article = "<hr><p style='text-align: center'>See the <a href='https://github.com
92
  examples=[['Example00001.jpg'],['Example00002.jpg'],['Example00003.jpg'],['Example00004.jpg']]
93
  gr.Interface(
94
  inference,
95
- gr.inputs.Image(type="pil", label="Input"),
96
- gr.outputs.Image(type="pil", label="Output"),
97
  title=title,
98
  description=description,
99
  article=article,
 
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']]
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,