Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import pytesseract
|
3 |
|
4 |
-
|
|
|
5 |
|
6 |
def process_recipe(i,j):
|
7 |
text = pytesseract.image_to_string(Image.open(image))
|
|
|
1 |
import gradio as gr
|
2 |
import pytesseract
|
3 |
|
4 |
+
sudo apt-get install -y tesseract-ocr
|
5 |
+
pytesseract.pytesseract.tesseract_cmd = r'/usr/bin/tesseract'
|
6 |
|
7 |
def process_recipe(i,j):
|
8 |
text = pytesseract.image_to_string(Image.open(image))
|