nyonyong commited on
Commit
cf12374
1 Parent(s): 1b00da7

Directory fix

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,13 +11,14 @@ github = "https://github.com/bandalcom/Postech-KITA_AI-Project"
11
  #torch.hub.download_url_to_file('https://huggingface.co/spaces/Nebulae000/NoteCrawling/blob/main/noteimg2.jpg', 'noteimg2.jpg')
12
 
13
  def HCR(im):
 
14
  ps.textDetection(im)
15
  ps.textRearrange()
16
  ps.textRecognition()
17
  #subprocess.call('ls', shell=True)
18
  hcr = ps.getHcrResult("/home/user/app"+Dir.txt_file_path)
19
  #subprocess.call('cd'+ Dir.yolo_dir, shell=True)
20
- #clearDir()
21
 
22
  return hcr
23
 
 
11
  #torch.hub.download_url_to_file('https://huggingface.co/spaces/Nebulae000/NoteCrawling/blob/main/noteimg2.jpg', 'noteimg2.jpg')
12
 
13
  def HCR(im):
14
+ ps.clearDir()
15
  ps.textDetection(im)
16
  ps.textRearrange()
17
  ps.textRecognition()
18
  #subprocess.call('ls', shell=True)
19
  hcr = ps.getHcrResult("/home/user/app"+Dir.txt_file_path)
20
  #subprocess.call('cd'+ Dir.yolo_dir, shell=True)
21
+ ps.clearDir()
22
 
23
  return hcr
24