RMWeerasinghe
commited on
Commit
•
2d5c862
1
Parent(s):
99e744f
Initial Commit
Browse files
app.py
CHANGED
@@ -18,23 +18,23 @@ from utils import (
|
|
18 |
|
19 |
from rouge import Rouge
|
20 |
|
21 |
-
def filer():
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
file_handler = logging.FileHandler(filer())
|
28 |
-
# file_handler = logging.handlers.TimedRotatingFileHandler(filer(),when="D")
|
29 |
-
file_handler.setLevel(logging.INFO)
|
30 |
-
|
31 |
-
logging.basicConfig(
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
)
|
38 |
|
39 |
logger = logging.getLogger(__name__)
|
40 |
|
|
|
18 |
|
19 |
from rouge import Rouge
|
20 |
|
21 |
+
# def filer():
|
22 |
+
# # return "logs/log "
|
23 |
+
# today = datetime.datetime.today()
|
24 |
+
# log_filename = f"logs/{today.year}-{today.month:02d}-{today.day:02d}.log"
|
25 |
+
# return log_filename
|
26 |
+
|
27 |
+
# file_handler = logging.FileHandler(filer())
|
28 |
+
# # file_handler = logging.handlers.TimedRotatingFileHandler(filer(),when="D")
|
29 |
+
# file_handler.setLevel(logging.INFO)
|
30 |
+
|
31 |
+
# logging.basicConfig(
|
32 |
+
# level=logging.DEBUG,
|
33 |
+
# format="%(asctime)s %(levelname)s (%(name)s) : %(message)s",
|
34 |
+
# datefmt="%Y-%m-%d %H:%M:%S",
|
35 |
+
# handlers=[file_handler],
|
36 |
+
# force=True,
|
37 |
+
# )
|
38 |
|
39 |
logger = logging.getLogger(__name__)
|
40 |
|