Spaces:
Runtime error
Runtime error
Update utility/utils.py
Browse files- utility/utils.py +2 -0
utility/utils.py
CHANGED
@@ -24,6 +24,8 @@ logging.basicConfig(
|
|
24 |
os.environ['PADDLEOCR_HOME'] = '/tmp/.paddleocr'
|
25 |
|
26 |
RESULT_FOLDER = 'static/results/'
|
|
|
|
|
27 |
if not os.path.exists('/tmp/.paddleocr'):
|
28 |
os.makedirs(RESULT_FOLDER, exist_ok=True)
|
29 |
|
|
|
24 |
os.environ['PADDLEOCR_HOME'] = '/tmp/.paddleocr'
|
25 |
|
26 |
RESULT_FOLDER = 'static/results/'
|
27 |
+
JSON_FOLDER = 'static/json/'
|
28 |
+
|
29 |
if not os.path.exists('/tmp/.paddleocr'):
|
30 |
os.makedirs(RESULT_FOLDER, exist_ok=True)
|
31 |
|