Fixed missing imports.
Browse files
client/gradio_functions.py
CHANGED
@@ -2,7 +2,9 @@
|
|
2 |
|
3 |
import os
|
4 |
import re
|
5 |
-
|
|
|
|
|
6 |
|
7 |
def get_dialog_logger(name: str = 'dialog', clear: bool = True) -> logging.Logger:
|
8 |
'''Sets up logger for model's internal dialog.'''
|
|
|
2 |
|
3 |
import os
|
4 |
import re
|
5 |
+
import logging
|
6 |
+
from pathlib import Path
|
7 |
+
from logging.handlers import RotatingFileHandler
|
8 |
|
9 |
def get_dialog_logger(name: str = 'dialog', clear: bool = True) -> logging.Logger:
|
10 |
'''Sets up logger for model's internal dialog.'''
|