Update ui/dash.py
Browse files- ui/dash.py +20 -0
ui/dash.py
CHANGED
|
@@ -12,6 +12,26 @@ from app.ratios import compute_ratios
|
|
| 12 |
from app.policies import ai_score, credit_score, loan_score, invest_score, summarize
|
| 13 |
from app.bridge_external import external_from_figures
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# 業界ベンチ(JFC資料を参考にした代表値。必要に応じ CSV 化可能)
|
| 16 |
BENCH = {
|
| 17 |
"製造業": {"current_ratio":1.5, "equity_ratio":0.35, "operating_margin":0.06, "inventory_days":70},
|
|
|
|
| 12 |
from app.policies import ai_score, credit_score, loan_score, invest_score, summarize
|
| 13 |
from app.bridge_external import external_from_figures
|
| 14 |
|
| 15 |
+
# ui/dash.py(先頭のimport群)
|
| 16 |
+
import gradio as gr
|
| 17 |
+
import pandas as pd
|
| 18 |
+
|
| 19 |
+
from app.parsers.finstat import parse_financials # PDF→表(正規化済み)
|
| 20 |
+
from app.derive.financials import build_ratios_table, build_kpis_table
|
| 21 |
+
from app.scoring import (
|
| 22 |
+
get_external_template_df,
|
| 23 |
+
fill_missing_with_external,
|
| 24 |
+
score_external_from_df,
|
| 25 |
+
ai_score_company,
|
| 26 |
+
hybrid_score,
|
| 27 |
+
make_summary,
|
| 28 |
+
score_credit,
|
| 29 |
+
score_lending,
|
| 30 |
+
score_investment,
|
| 31 |
+
)
|
| 32 |
+
from app.services.pipeline import run_full_pipeline # PDF→一括推論
|
| 33 |
+
|
| 34 |
+
|
| 35 |
# 業界ベンチ(JFC資料を参考にした代表値。必要に応じ CSV 化可能)
|
| 36 |
BENCH = {
|
| 37 |
"製造業": {"current_ratio":1.5, "equity_ratio":0.35, "operating_margin":0.06, "inventory_days":70},
|