Spaces:
Sleeping
Sleeping
rebaseline06_20Sept25_06
Browse files- file_handler/file_utils.py +1 -1
- ui/gradio_ui.py +0 -1
- utils/logger.py +1 -1
file_handler/file_utils.py
CHANGED
|
@@ -47,7 +47,7 @@ def find_file(file_name: str) -> Path: #configparser.ConfigParser:
|
|
| 47 |
# 1. Get the current script's path, its parent and its grandparent directory
|
| 48 |
# Start the search from the directory of the file this function is in
|
| 49 |
try:
|
| 50 |
-
current_path = Path(sys.argv[0]).resolve()
|
| 51 |
except IndexError:
|
| 52 |
# Handle cases where sys.argv[0] might not exist (e.g., in some IDEs)
|
| 53 |
current_path = Path(__file__).resolve()
|
|
|
|
| 47 |
# 1. Get the current script's path, its parent and its grandparent directory
|
| 48 |
# Start the search from the directory of the file this function is in
|
| 49 |
try:
|
| 50 |
+
current_path = Path(sys.argv[0]).resolve()
|
| 51 |
except IndexError:
|
| 52 |
# Handle cases where sys.argv[0] might not exist (e.g., in some IDEs)
|
| 53 |
current_path = Path(__file__).resolve()
|
ui/gradio_ui.py
CHANGED
|
@@ -33,7 +33,6 @@ pdf2md_converter = PdfToMarkdownConverter()
|
|
| 33 |
#html2md_converter = HtmlToMarkdownConverter()
|
| 34 |
#md2pdf_converter = MarkdownToPdfConverter()
|
| 35 |
|
| 36 |
-
|
| 37 |
# pool executor to convert files called by Gradio
|
| 38 |
def convert_batch(
|
| 39 |
pdf_files, #: list[str],
|
|
|
|
| 33 |
#html2md_converter = HtmlToMarkdownConverter()
|
| 34 |
#md2pdf_converter = MarkdownToPdfConverter()
|
| 35 |
|
|
|
|
| 36 |
# pool executor to convert files called by Gradio
|
| 37 |
def convert_batch(
|
| 38 |
pdf_files, #: list[str],
|
utils/logger.py
CHANGED
|
@@ -69,7 +69,7 @@ def setup_logging(level: int = None) -> None:
|
|
| 69 |
file_handler = logging.FileHandler(check_create_logfile("app_logging.log"), mode="a", encoding="utf-8")
|
| 70 |
## Getting filepermission error
|
| 71 |
|
| 72 |
-
file_handler.setFormatter(JsonFormatter())
|
| 73 |
|
| 74 |
root = logging.getLogger()
|
| 75 |
root.handlers.clear()
|
|
|
|
| 69 |
file_handler = logging.FileHandler(check_create_logfile("app_logging.log"), mode="a", encoding="utf-8")
|
| 70 |
## Getting filepermission error
|
| 71 |
|
| 72 |
+
file_handler.setFormatter(JsonFormatter())
|
| 73 |
|
| 74 |
root = logging.getLogger()
|
| 75 |
root.handlers.clear()
|