Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -1,7 +1,11 @@ | |
| 1 | 
             
            import gradio as gr
         | 
|  | |
|  | |
|  | |
| 2 |  | 
| 3 | 
             
            def process_recipe(i,j):
         | 
| 4 | 
            -
             | 
|  | |
| 5 |  | 
| 6 | 
             
            iface = gr.Interface(
         | 
| 7 | 
             
                fn=process_recipe,
         | 
|  | |
| 1 | 
             
            import gradio as gr
         | 
| 2 | 
            +
            import pytesseract
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            pytesseract.pytesseract.tesseract_cmd = r'/usr/bin/tesseract'
         | 
| 5 |  | 
| 6 | 
             
            def process_recipe(i,j):
         | 
| 7 | 
            +
                text = pytesseract.image_to_string(Image.open(image))
         | 
| 8 | 
            +
                return text
         | 
| 9 |  | 
| 10 | 
             
            iface = gr.Interface(
         | 
| 11 | 
             
                fn=process_recipe,
         |