WebashalarForML commited on
Commit
73884d7
1 Parent(s): 92f0c53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -7,10 +7,13 @@ from backup.backup import NER_Model
7
  from paddleocr import PaddleOCR
8
 
9
  # Configure logging
10
- logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s: %(message)s', handlers=[
11
- logging.FileHandler("app.log"),
12
- logging.StreamHandler()
13
- ])
 
 
 
14
 
15
  # Flask App
16
  app = Flask(__name__)
 
7
  from paddleocr import PaddleOCR
8
 
9
  # Configure logging
10
+ logging.basicConfig(
11
+ level=logging.INFO,
12
+ handlers=[
13
+ logging.FileHandler("/tmp/app.log"), # Change log path to /tmp
14
+ logging.StreamHandler()
15
+ ]
16
+ )
17
 
18
  # Flask App
19
  app = Flask(__name__)