Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ if platform.system() == 'Windows':
|
|
| 21 |
pytesseract.pytesseract.tesseract_cmd = tesseract_config['tesseractpath']
|
| 22 |
|
| 23 |
# Table detection-recognition model loading function
|
| 24 |
-
@st.
|
| 25 |
def load_models():
|
| 26 |
try:
|
| 27 |
# models loading from local
|
|
|
|
| 21 |
pytesseract.pytesseract.tesseract_cmd = tesseract_config['tesseractpath']
|
| 22 |
|
| 23 |
# Table detection-recognition model loading function
|
| 24 |
+
@st.cache_resource
|
| 25 |
def load_models():
|
| 26 |
try:
|
| 27 |
# models loading from local
|