WebashalarForML commited on
Commit
37ffd75
1 Parent(s): d99a2b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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():