Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Commit
•
73884d7
1
Parent(s):
92f0c53
Update app.py
Browse files
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(
|
11 |
-
logging.
|
12 |
-
|
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__)
|