Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -4,6 +4,8 @@ from PIL import ImageDraw | |
| 4 | 
             
            import gradio as gr
         | 
| 5 | 
             
            import torch
         | 
| 6 | 
             
            import easyocr
         | 
|  | |
|  | |
| 7 |  | 
| 8 | 
             
            torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/english.png', 'english.png')
         | 
| 9 | 
             
            torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/thai.jpg', 'thai.jpg')
         | 
|  | |
| 4 | 
             
            import gradio as gr
         | 
| 5 | 
             
            import torch
         | 
| 6 | 
             
            import easyocr
         | 
| 7 | 
            +
            import logging
         | 
| 8 | 
            +
            logging.basicConfig(level=logging.DEBUG)
         | 
| 9 |  | 
| 10 | 
             
            torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/english.png', 'english.png')
         | 
| 11 | 
             
            torch.hub.download_url_to_file('https://github.com/JaidedAI/EasyOCR/raw/master/examples/thai.jpg', 'thai.jpg')
         |