Spaces:
Runtime error
Runtime error
tuned the model
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pytesseract
|
| 3 |
-
import
|
| 4 |
# from pdf2image import convert_from_path
|
| 5 |
import pandas as pd
|
| 6 |
import yake
|
|
@@ -75,7 +75,7 @@ def rees(glo_text, keys):
|
|
| 75 |
os.remove("audio.mp3")
|
| 76 |
|
| 77 |
def load_image(image_file):
|
| 78 |
-
img =
|
| 79 |
st.image(img, width=250)
|
| 80 |
text = pytesseract.image_to_string(img)
|
| 81 |
img.close()
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pytesseract
|
| 3 |
+
from PIL import Image
|
| 4 |
# from pdf2image import convert_from_path
|
| 5 |
import pandas as pd
|
| 6 |
import yake
|
|
|
|
| 75 |
os.remove("audio.mp3")
|
| 76 |
|
| 77 |
def load_image(image_file):
|
| 78 |
+
img = Image.open(image_file)
|
| 79 |
st.image(img, width=250)
|
| 80 |
text = pytesseract.image_to_string(img)
|
| 81 |
img.close()
|
requirements.txt
CHANGED
|
@@ -5,5 +5,5 @@ streamlit
|
|
| 5 |
yake
|
| 6 |
gtts
|
| 7 |
sklearn
|
| 8 |
-
|
| 9 |
PyMuPDF
|
|
|
|
| 5 |
yake
|
| 6 |
gtts
|
| 7 |
sklearn
|
| 8 |
+
PIL
|
| 9 |
PyMuPDF
|