Namit2111 commited on
Commit
5ea8aba
β€’
1 Parent(s): 869bdbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  from PIL import Image
5
  import easyocr
6
  import ocr as o
7
- reader = easyocr.Reader(['ch_sim','en'])
8
  def fun(id_img_path,selfie_img_path):
9
  res = False
10
  img = Image.fromarray(id_img_path,'RGB')
@@ -21,7 +21,7 @@ interface = gr.Interface(fun,inputs=[gr.Image(),gr.Image()],outputs='text')
21
  # Will return True or false
22
 
23
 
24
- interface.launch(share= True)
25
 
26
  # id_img_path ="test.jpg" #give image path
27
  # selfie_img_path = "142142_faces.jpg" #give path of curret face
 
4
  from PIL import Image
5
  import easyocr
6
  import ocr as o
7
+ reader = easyocr.Reader(['en'])
8
  def fun(id_img_path,selfie_img_path):
9
  res = False
10
  img = Image.fromarray(id_img_path,'RGB')
 
21
  # Will return True or false
22
 
23
 
24
+ interface.launch()
25
 
26
  # id_img_path ="test.jpg" #give image path
27
  # selfie_img_path = "142142_faces.jpg" #give path of curret face