WebashalarForML commited on
Commit
331c349
·
verified ·
1 Parent(s): 47672aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -26,10 +26,11 @@ os.makedirs(UPLOAD_FOLDER, exist_ok=True)
26
  os.makedirs(RESULT_FOLDER, exist_ok=True)
27
 
28
  if not os.path.exists(app.config['UPLOAD_FOLDER']):
29
- os.makedirs(app.config['UPLOAD_FOLDER'])
30
 
31
  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'] = '/tmp/.paddleocr'
@@ -234,4 +235,4 @@ def uploaded_file(filename):
234
 
235
  if __name__ == '__main__':
236
  logging.info("Starting Flask app")
237
- app.run(debug=True)
 
26
  os.makedirs(RESULT_FOLDER, exist_ok=True)
27
 
28
  if not os.path.exists(app.config['UPLOAD_FOLDER']):
29
+ os.makedirs(app.config['UPLOAD_FOLDER'], exist_ok=True)
30
 
31
  if not os.path.exists(app.config['RESULT_FOLDER']):
32
+ os.makedirs(app.config['RESULT_FOLDER'], exist_ok=True)
33
+
34
 
35
  # Set the PaddleOCR home directory to a writable location
36
  os.environ['PADDLEOCR_HOME'] = '/tmp/.paddleocr'
 
235
 
236
  if __name__ == '__main__':
237
  logging.info("Starting Flask app")
238
+ app.run(debug=True)