Spaces:
Sleeping
Sleeping
Sahil Garg
commited on
Commit
Β·
c094882
1
Parent(s):
f39814a
module and file name changed according to community standards
Browse files- main.py β app.py +4 -4
- {app β notes}/__init__.py +0 -0
- {app β notes}/data_extraction.py +0 -0
- {app β notes}/data_loader.py +0 -0
- {app β notes}/json_to_excel.py +0 -0
- {app β notes}/llm_notes_generator.py +1 -1
- {app β notes}/notes_generator.py +0 -0
- {app β notes}/notes_template.py +0 -0
- {app β notes}/utils/__init__.py +0 -0
- {app β notes}/utils/utils.py +0 -0
- {app β notes}/utils/utils_normalize.py +0 -0
main.py β app.py
RENAMED
|
@@ -11,10 +11,10 @@ import logging
|
|
| 11 |
|
| 12 |
# Import utilities and logic from modular files
|
| 13 |
from utils.utils import clean_value
|
| 14 |
-
from
|
| 15 |
-
from
|
| 16 |
-
from
|
| 17 |
-
from
|
| 18 |
from utils.utils_normalize import normalize_llm_note_json, normalize_llm_notes_json
|
| 19 |
|
| 20 |
|
|
|
|
| 11 |
|
| 12 |
# Import utilities and logic from modular files
|
| 13 |
from utils.utils import clean_value
|
| 14 |
+
from notes.data_extraction import extract_trial_balance_data, analyze_and_save_results
|
| 15 |
+
from notes.llm_notes_generator import FlexibleFinancialNoteGenerator
|
| 16 |
+
from notes.notes_generator import process_json
|
| 17 |
+
from notes.json_to_excel import json_to_xlsx
|
| 18 |
from utils.utils_normalize import normalize_llm_note_json, normalize_llm_notes_json
|
| 19 |
|
| 20 |
|
{app β notes}/__init__.py
RENAMED
|
File without changes
|
{app β notes}/data_extraction.py
RENAMED
|
File without changes
|
{app β notes}/data_loader.py
RENAMED
|
File without changes
|
{app β notes}/json_to_excel.py
RENAMED
|
File without changes
|
{app β notes}/llm_notes_generator.py
RENAMED
|
@@ -142,7 +142,7 @@ class FlexibleFinancialNoteGenerator:
|
|
| 142 |
logger.info(f"Loaded trial balance with {len(accounts)} accounts")
|
| 143 |
return {"accounts": accounts}
|
| 144 |
elif file_path.endswith('.xlsx'):
|
| 145 |
-
from
|
| 146 |
accounts = extract_trial_balance_data(file_path)
|
| 147 |
logger.info(f"Extracted trial balance with {len(accounts)} accounts from Excel")
|
| 148 |
return {"accounts": accounts}
|
|
|
|
| 142 |
logger.info(f"Loaded trial balance with {len(accounts)} accounts")
|
| 143 |
return {"accounts": accounts}
|
| 144 |
elif file_path.endswith('.xlsx'):
|
| 145 |
+
from notes.data_extraction import extract_trial_balance_data
|
| 146 |
accounts = extract_trial_balance_data(file_path)
|
| 147 |
logger.info(f"Extracted trial balance with {len(accounts)} accounts from Excel")
|
| 148 |
return {"accounts": accounts}
|
{app β notes}/notes_generator.py
RENAMED
|
File without changes
|
{app β notes}/notes_template.py
RENAMED
|
File without changes
|
{app β notes}/utils/__init__.py
RENAMED
|
File without changes
|
{app β notes}/utils/utils.py
RENAMED
|
File without changes
|
{app β notes}/utils/utils_normalize.py
RENAMED
|
File without changes
|