Ahsen Khaliq commited on
Commit
00a057f
1 Parent(s): ceadf72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ os.system('pip install paddleocr')
4
  from paddleocr import PaddleOCR, draw_ocr
5
  from PIL import Image
6
  import gradio as gr
 
7
  ocr = PaddleOCR(use_angle_cls=True, lang='en',use_gpu=False)
8
 
9
  torch.hub.download_url_to_file('https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.3/doc/imgs_en/254.jpg', 'receipt.jpg')
 
4
  from paddleocr import PaddleOCR, draw_ocr
5
  from PIL import Image
6
  import gradio as gr
7
+ import torch
8
  ocr = PaddleOCR(use_angle_cls=True, lang='en',use_gpu=False)
9
 
10
  torch.hub.download_url_to_file('https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.3/doc/imgs_en/254.jpg', 'receipt.jpg')