Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,8 @@ if not os.path.exists(app.config['RESULT_FOLDER']):
|
|
| 32 |
os.makedirs(app.config['RESULT_FOLDER'])
|
| 33 |
|
| 34 |
# Set the PaddleOCR home directory to a writable location
|
| 35 |
-
os.environ['PADDLEOCR_HOME'] = os.path.join(app.config['UPLOAD_FOLDER'], '.paddleocr') # Change made here
|
|
|
|
| 36 |
|
| 37 |
@app.route('/')
|
| 38 |
def index():
|
|
|
|
| 32 |
os.makedirs(app.config['RESULT_FOLDER'])
|
| 33 |
|
| 34 |
# Set the PaddleOCR home directory to a writable location
|
| 35 |
+
#os.environ['PADDLEOCR_HOME'] = os.path.join(app.config['UPLOAD_FOLDER'], '.paddleocr') # Change made here
|
| 36 |
+
os.environ['PADDLEOCR_HOME'] = '/tmp/.paddleocr'
|
| 37 |
|
| 38 |
@app.route('/')
|
| 39 |
def index():
|