feat: Rename engine to `ArchonMasterEngine`, add `grocer` and `utilities` to essential keywords, refine risk scoring and NBO messages, and introduce a new balance trend visualization.
Browse files
app.py
CHANGED
|
@@ -13,15 +13,25 @@ client_ai = genai.Client(api_key=GOOGLE_API_KEY) if GOOGLE_API_KEY else None
|
|
| 13 |
custom_css = """
|
| 14 |
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');
|
| 15 |
body, .gradio-container { font-family: 'Plus Jakarta Sans', sans-serif !important; background-color: #FFFFFF !important; }
|
| 16 |
-
|
| 17 |
-
.nagari-header
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
.health-badge { background: white; padding: 12px; border-radius: 8px; margin-bottom: 12px; border-left: 5px solid #05A4DE; font-size: 0.95em; }
|
|
|
|
| 20 |
.report-card { background: white; border-radius: 12px; padding: 30px; border: 1px solid #E2E8F0; line-height: 1.8; color: #1e293b; }
|
| 21 |
.nbo-box { background: #fffdf0; border: 2px solid #F7BD87; padding: 20px; border-radius: 10px; margin-top: 20px; }
|
| 22 |
"""
|
| 23 |
|
| 24 |
-
class
|
| 25 |
def __init__(self):
|
| 26 |
self.load_data()
|
| 27 |
|
|
@@ -38,73 +48,65 @@ class ArchonFinalEngine:
|
|
| 38 |
u_txn = self.df_txn[self.df_txn['customer_id'] == cid].copy()
|
| 39 |
u_bal = self.df_bal[self.df_bal['customer_id'] == cid].sort_values('month')
|
| 40 |
u_rep = self.df_rep[self.df_rep['customer_id'] == cid]
|
| 41 |
-
|
| 42 |
|
| 43 |
-
if u_txn.empty or
|
| 44 |
-
u_info =
|
| 45 |
|
| 46 |
-
# --- FASE 2:
|
| 47 |
-
|
| 48 |
def classify_exp(row):
|
| 49 |
desc = str(row.get('raw_description', '')).lower()
|
| 50 |
-
return 'essential' if any(k in desc for k in
|
| 51 |
u_txn['expense_type'] = u_txn.apply(classify_exp, axis=1)
|
| 52 |
|
| 53 |
-
# --- FASE 3 & 4: RISK SCORING
|
| 54 |
income_txn = u_txn[u_txn['transaction_type'] == 'credit']['amount'].sum()
|
| 55 |
ref_income = max(income_txn, u_info['monthly_income'])
|
| 56 |
expense = u_txn[u_txn['transaction_type'] == 'debit']['amount'].sum()
|
| 57 |
er = expense / ref_income if ref_income > 0 else 1.0
|
| 58 |
|
| 59 |
-
#
|
| 60 |
er_s = 1.0 if er > 0.8 else (0.5 if er > 0.5 else 0.0)
|
| 61 |
bt_s = 1.0 if len(u_bal) >= 2 and u_bal.iloc[-1]['avg_balance'] < u_bal.iloc[0]['avg_balance'] else 0.0
|
| 62 |
od_s = 1.0 if (u_bal['min_balance'] <= 0).any() else 0.0
|
| 63 |
mp_s = 1.0 if (u_rep['status'] == 'late').any() else 0.0
|
| 64 |
|
| 65 |
score = (0.3 * er_s) + (0.2 * bt_s) + (0.2 * od_s) + (0.2 * mp_s) + 0.05
|
| 66 |
-
|
| 67 |
-
# Classification (Sesuai dokumen)
|
| 68 |
-
if score >= 0.7: risk_lv = "HIGH"
|
| 69 |
-
elif score >= 0.4: risk_lv = "MEDIUM"
|
| 70 |
-
else: risk_lv = "LOW"
|
| 71 |
|
| 72 |
-
# --- FASE 5: NBO ENGINE
|
| 73 |
if risk_lv == "HIGH" or mp_s == 1:
|
| 74 |
-
action = "
|
| 75 |
-
|
| 76 |
-
steps = ["Ajukan peninjauan tenor pinjaman", "Konsolidasi tagihan harian", "Manfaatkan konsultasi dana darurat."]
|
| 77 |
elif er > 0.6:
|
| 78 |
-
action = "Pengaturan Limit Belanja (Spending Control)"
|
| 79 |
-
|
| 80 |
-
steps = ["Atur limit harian belanja", "Aktifkan notifikasi saldo minimum", "Prioritaskan kebutuhan pokok (Essential)."]
|
| 81 |
elif risk_lv == "LOW":
|
| 82 |
-
action = "
|
| 83 |
-
|
| 84 |
-
steps = ["Buka tabungan berjangka otomatis", "Pindahkan dana ke deposito bunga tinggi", "Eksplorasi produk reksa dana."]
|
| 85 |
else:
|
| 86 |
-
action = "Edukasi Pengelolaan Kas"
|
| 87 |
-
|
| 88 |
-
steps = ["Baca artikel cerdas belanja", "Gunakan fitur budgeting di aplikasi", "Review pengeluaran akhir bulan."]
|
| 89 |
|
| 90 |
return risk_lv, score, er, u_bal, u_txn, expense, ref_income, action, nbo_msg, steps, er_s, bt_s, od_s, mp_s
|
| 91 |
|
| 92 |
def build_narrative(self, risk_lv, score, er, u_bal, exp, inc, action, nbo_msg, steps, cid, u_txn):
|
| 93 |
-
# FASE 6: EXPLAINABLE SUMMARY
|
| 94 |
-
msg = f"### ANALISIS RESILIENSI FINANSIAL ANDA\n\n"
|
| 95 |
-
msg += f"Halo Bapak/Ibu,
|
| 96 |
|
| 97 |
msg += f"**1. Mengapa Skor Ini Muncul?**\n"
|
| 98 |
msg += f"* **Efisiensi Belanja ({er:.1%})**: Anda menghabiskan Rp{exp:,.0f} dari pendapatan Rp{inc:,.0f}. "
|
| 99 |
-
msg += "
|
| 100 |
|
| 101 |
if not u_bal.empty:
|
| 102 |
-
msg += f"\n* **Analisis Saldo**: Saldo
|
| 103 |
-
msg += "Terdeteksi tren penurunan saldo
|
| 104 |
|
| 105 |
msg += f"\n\n<div class='nbo-box'>REKOMENDASI UNTUK ANDA: {action}\n\n"
|
| 106 |
msg += f"**Tujuan:** {nbo_msg}\n\n"
|
| 107 |
-
msg += f"**Langkah Implementasi:**\n"
|
| 108 |
for i, step in enumerate(steps, 1): msg += f"{i}. {step}\n"
|
| 109 |
msg += f"</div>"
|
| 110 |
return msg
|
|
@@ -118,7 +120,7 @@ class ArchonFinalEngine:
|
|
| 118 |
f1.add_trace(go.Bar(x=cf.index, y=cf.get('debit', 0), name='Pengeluaran (Outflow)', marker_color='#05A4DE'))
|
| 119 |
f1.update_layout(title="Arus Kas Bulanan", barmode='group', template='plotly_white')
|
| 120 |
|
| 121 |
-
# 2. Pie Chart
|
| 122 |
exp_dist = u_txn[u_txn['transaction_type'] == 'debit'].groupby('expense_type')['amount'].sum().reset_index()
|
| 123 |
color_map = {'essential': '#05A4DE', 'discretionary': '#F7BD87'}
|
| 124 |
f2 = go.Figure(data=[go.Pie(
|
|
@@ -126,19 +128,24 @@ class ArchonFinalEngine:
|
|
| 126 |
marker=dict(colors=[color_map.get(x, '#E0EDF4') for x in exp_dist['expense_type']])
|
| 127 |
)])
|
| 128 |
f2.update_layout(title="Komposisi Pengeluaran (Kebutuhan vs Gaya Hidup)")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
|
| 130 |
-
return f1, f2
|
| 131 |
|
| 132 |
# --- UI LOGIC ---
|
| 133 |
-
engine =
|
| 134 |
|
| 135 |
def run_app(cust_id):
|
| 136 |
res = engine.analyze(cust_id)
|
| 137 |
-
if not res: return "ID Tidak Valid", "Gunakan C0001 - C0120", None, None
|
| 138 |
|
| 139 |
risk_lv, score, er, u_bal, u_txn, exp, inc, action, nbo_msg, steps, er_s, bt_s, od_s, mp_s = res
|
| 140 |
report = engine.build_narrative(risk_lv, score, er, u_bal, exp, inc, action, nbo_msg, steps, cust_id, u_txn)
|
| 141 |
-
p1, p2 = engine.create_viz(u_bal, u_txn)
|
| 142 |
|
| 143 |
color = "#ef4444" if risk_lv == "HIGH" else ("#f59e0b" if risk_lv == "MEDIUM" else "#10b981")
|
| 144 |
sidebar = f"""
|
|
@@ -150,14 +157,14 @@ def run_app(cust_id):
|
|
| 150 |
<div class='health-badge'><b>Kesehatan Saldo:</b> {'🔻 Menurun' if bt_s == 1 else '🔺 Stabil'}</div>
|
| 151 |
</div>
|
| 152 |
"""
|
| 153 |
-
return sidebar, report, p1, p2
|
| 154 |
|
| 155 |
with gr.Blocks(css=custom_css) as demo:
|
| 156 |
gr.HTML("<div class='nagari-header'><h1>ARCHON-AI</h1></div>")
|
| 157 |
with gr.Row():
|
| 158 |
with gr.Column(scale=1):
|
| 159 |
id_in = gr.Textbox(label="Customer ID", placeholder="C0001")
|
| 160 |
-
btn = gr.Button("
|
| 161 |
out_side = gr.HTML()
|
| 162 |
with gr.Column(scale=2):
|
| 163 |
with gr.Tabs():
|
|
@@ -166,12 +173,16 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 166 |
with gr.Tab("Visualisasi Keuangan"):
|
| 167 |
gr.Markdown("### 1. Uang Masuk vs Uang Keluar")
|
| 168 |
plot_cf = gr.Plot()
|
| 169 |
-
gr.HTML("<div style='background:#f1f5f9; padding:15px; border-radius:8px;'><b>Interpretasi:</b> Batang muda (Inflow)
|
| 170 |
gr.Markdown("---")
|
| 171 |
-
gr.Markdown("### 2.
|
| 172 |
plot_dist = gr.Plot()
|
| 173 |
gr.HTML("<div style='background:#f1f5f9; padding:15px; border-radius:8px;'><b>Warna:</b> Biru = Kebutuhan (Essential). Emas = Gaya Hidup (Discretionary).</div>")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
|
| 175 |
-
btn.click(fn=run_app, inputs=id_in, outputs=[out_side, out_report, plot_cf, plot_dist])
|
| 176 |
|
| 177 |
demo.launch()
|
|
|
|
| 13 |
custom_css = """
|
| 14 |
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');
|
| 15 |
body, .gradio-container { font-family: 'Plus Jakarta Sans', sans-serif !important; background-color: #FFFFFF !important; }
|
| 16 |
+
|
| 17 |
+
.nagari-header {
|
| 18 |
+
background: linear-gradient(135deg, #05A4DE 0%, #82C3EB 100%);
|
| 19 |
+
padding: 35px; border-radius: 15px; border-bottom: 6px solid #F7BD87;
|
| 20 |
+
margin-bottom: 25px; text-align: center;
|
| 21 |
+
}
|
| 22 |
+
.nagari-header h1 { color: #FFFFFF !important; font-weight: 800 !important; margin: 0; font-size: 2.2em; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
|
| 23 |
+
|
| 24 |
+
.card-sidebar {
|
| 25 |
+
background: #E0EDF4; border-radius: 15px; padding: 25px;
|
| 26 |
+
border: 1.5px solid #82C3EB; box-shadow: 0 4px 12px rgba(5, 164, 222, 0.1);
|
| 27 |
+
}
|
| 28 |
.health-badge { background: white; padding: 12px; border-radius: 8px; margin-bottom: 12px; border-left: 5px solid #05A4DE; font-size: 0.95em; }
|
| 29 |
+
|
| 30 |
.report-card { background: white; border-radius: 12px; padding: 30px; border: 1px solid #E2E8F0; line-height: 1.8; color: #1e293b; }
|
| 31 |
.nbo-box { background: #fffdf0; border: 2px solid #F7BD87; padding: 20px; border-radius: 10px; margin-top: 20px; }
|
| 32 |
"""
|
| 33 |
|
| 34 |
+
class ArchonMasterEngine:
|
| 35 |
def __init__(self):
|
| 36 |
self.load_data()
|
| 37 |
|
|
|
|
| 48 |
u_txn = self.df_txn[self.df_txn['customer_id'] == cid].copy()
|
| 49 |
u_bal = self.df_bal[self.df_bal['customer_id'] == cid].sort_values('month')
|
| 50 |
u_rep = self.df_rep[self.df_rep['customer_id'] == cid]
|
| 51 |
+
u_info_df = self.df_cust[self.df_cust['customer_id'] == cid]
|
| 52 |
|
| 53 |
+
if u_txn.empty or u_info_df.empty: return None
|
| 54 |
+
u_info = u_info_df.iloc[0]
|
| 55 |
|
| 56 |
+
# --- FASE 2: INTELLIGENCE (Semantic Parser) ---
|
| 57 |
+
essential_keywords = ['indomaret', 'alfamart', 'listrik', 'pdam', 'telkom', 'sekolah', 'rs ', 'obat', 'cicilan', 'pinjaman', 'gaji', 'asuransi', 'grocer', 'utilities']
|
| 58 |
def classify_exp(row):
|
| 59 |
desc = str(row.get('raw_description', '')).lower()
|
| 60 |
+
return 'essential' if any(k in desc for k in essential_keywords) else 'discretionary'
|
| 61 |
u_txn['expense_type'] = u_txn.apply(classify_exp, axis=1)
|
| 62 |
|
| 63 |
+
# --- FASE 3 & 4: RISK SCORING ---
|
| 64 |
income_txn = u_txn[u_txn['transaction_type'] == 'credit']['amount'].sum()
|
| 65 |
ref_income = max(income_txn, u_info['monthly_income'])
|
| 66 |
expense = u_txn[u_txn['transaction_type'] == 'debit']['amount'].sum()
|
| 67 |
er = expense / ref_income if ref_income > 0 else 1.0
|
| 68 |
|
| 69 |
+
# Bobot 30/20/20/20/10
|
| 70 |
er_s = 1.0 if er > 0.8 else (0.5 if er > 0.5 else 0.0)
|
| 71 |
bt_s = 1.0 if len(u_bal) >= 2 and u_bal.iloc[-1]['avg_balance'] < u_bal.iloc[0]['avg_balance'] else 0.0
|
| 72 |
od_s = 1.0 if (u_bal['min_balance'] <= 0).any() else 0.0
|
| 73 |
mp_s = 1.0 if (u_rep['status'] == 'late').any() else 0.0
|
| 74 |
|
| 75 |
score = (0.3 * er_s) + (0.2 * bt_s) + (0.2 * od_s) + (0.2 * mp_s) + 0.05
|
| 76 |
+
risk_lv = "HIGH" if score >= 0.7 else ("MEDIUM" if score >= 0.4 else "LOW")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
+
# --- FASE 5: NBO ENGINE ---
|
| 79 |
if risk_lv == "HIGH" or mp_s == 1:
|
| 80 |
+
action, nbo_msg = "Program Restrukturisasi", "Kami menyarankan penyesuaian jadwal pembayaran cicilan agar kondisi keuangan Anda tetap terjaga."
|
| 81 |
+
steps = ["Ajukan peninjauan tenor", "Konsolidasi tagihan harian", "Manfaatkan konsultasi dana."]
|
|
|
|
| 82 |
elif er > 0.6:
|
| 83 |
+
action, nbo_msg = "Pengaturan Limit Belanja (Spending Control)", "Kami mendeteksi pola belanja yang tinggi. Anda disarankan mengatur limit transaksi harian agar tabungan tetap aman."
|
| 84 |
+
steps = ["Atur limit harian QRIS", "Aktifkan notifikasi saldo", "Prioritaskan kebutuhan pokok."]
|
|
|
|
| 85 |
elif risk_lv == "LOW":
|
| 86 |
+
action, nbo_msg = "Optimalkan Tabungan (Promote Saving)", "Kondisi keuangan Anda sangat prima. Ini waktu yang tepat untuk menumbuhkan aset Anda melalui Deposito."
|
| 87 |
+
steps = ["Buka tabungan berjangka", "Pindahkan dana ke deposito", "Eksplorasi produk reksa dana."]
|
|
|
|
| 88 |
else:
|
| 89 |
+
action, nbo_msg = "Edukasi Pengelolaan Kas", "Mari perkuat daya tahan keuangan Anda dengan tips pengelolaan arus kas di aplikasi mobile kami."
|
| 90 |
+
steps = ["Baca artikel cerdas belanja", "Gunakan fitur budgeting", "Review pengeluaran bulanan."]
|
|
|
|
| 91 |
|
| 92 |
return risk_lv, score, er, u_bal, u_txn, expense, ref_income, action, nbo_msg, steps, er_s, bt_s, od_s, mp_s
|
| 93 |
|
| 94 |
def build_narrative(self, risk_lv, score, er, u_bal, exp, inc, action, nbo_msg, steps, cid, u_txn):
|
| 95 |
+
# FASE 6: EXPLAINABLE SUMMARY
|
| 96 |
+
msg = f"### LAPORAN ANALISIS RESILIENSI FINANSIAL ANDA\n\n"
|
| 97 |
+
msg += f"Halo Bapak/Ibu, sistem Archon menetapkan tingkat kesehatan finansial Anda ({cid}) pada kategori **{risk_lv}** (Skor: {score:.2f}).\n\n"
|
| 98 |
|
| 99 |
msg += f"**1. Mengapa Skor Ini Muncul?**\n"
|
| 100 |
msg += f"* **Efisiensi Belanja ({er:.1%})**: Anda menghabiskan Rp{exp:,.0f} dari pendapatan Rp{inc:,.0f}. "
|
| 101 |
+
msg += "Ini menunjukkan pengeluaran yang melebihi pendapatan (defisit)." if er > 1 else "Manajemen belanja Anda terpantau cukup terkendali."
|
| 102 |
|
| 103 |
if not u_bal.empty:
|
| 104 |
+
msg += f"\n* **Analisis Saldo**: Saldo rata-rata Anda Rp{u_bal.iloc[-1]['avg_balance']:,.0f}. "
|
| 105 |
+
msg += "Terdeteksi tren penurunan saldo, disarankan untuk mulai menabung kembali." if len(u_bal) > 1 and u_bal.iloc[-1]['avg_balance'] < u_bal.iloc[0]['avg_balance'] else "Saldo Anda tumbuh dengan stabil dan aman."
|
| 106 |
|
| 107 |
msg += f"\n\n<div class='nbo-box'>REKOMENDASI UNTUK ANDA: {action}\n\n"
|
| 108 |
msg += f"**Tujuan:** {nbo_msg}\n\n"
|
| 109 |
+
msg += f"**Langkah-Langkah Implementasi:**\n"
|
| 110 |
for i, step in enumerate(steps, 1): msg += f"{i}. {step}\n"
|
| 111 |
msg += f"</div>"
|
| 112 |
return msg
|
|
|
|
| 120 |
f1.add_trace(go.Bar(x=cf.index, y=cf.get('debit', 0), name='Pengeluaran (Outflow)', marker_color='#05A4DE'))
|
| 121 |
f1.update_layout(title="Arus Kas Bulanan", barmode='group', template='plotly_white')
|
| 122 |
|
| 123 |
+
# 2. Pie Chart
|
| 124 |
exp_dist = u_txn[u_txn['transaction_type'] == 'debit'].groupby('expense_type')['amount'].sum().reset_index()
|
| 125 |
color_map = {'essential': '#05A4DE', 'discretionary': '#F7BD87'}
|
| 126 |
f2 = go.Figure(data=[go.Pie(
|
|
|
|
| 128 |
marker=dict(colors=[color_map.get(x, '#E0EDF4') for x in exp_dist['expense_type']])
|
| 129 |
)])
|
| 130 |
f2.update_layout(title="Komposisi Pengeluaran (Kebutuhan vs Gaya Hidup)")
|
| 131 |
+
|
| 132 |
+
# 3. Tren Saldo (Restored)
|
| 133 |
+
f3 = go.Figure()
|
| 134 |
+
f3.add_trace(go.Scatter(x=u_bal['month'], y=u_bal['avg_balance'], name='Saldo Rata-rata', line=dict(color='#F7BD87', width=4)))
|
| 135 |
+
f3.update_layout(title="Tren Pertumbuhan Saldo", template='plotly_white')
|
| 136 |
|
| 137 |
+
return f1, f2, f3
|
| 138 |
|
| 139 |
# --- UI LOGIC ---
|
| 140 |
+
engine = ArchonMasterEngine()
|
| 141 |
|
| 142 |
def run_app(cust_id):
|
| 143 |
res = engine.analyze(cust_id)
|
| 144 |
+
if not res: return "ID Tidak Valid", "Gunakan ID C0001 - C0120", None, None, None
|
| 145 |
|
| 146 |
risk_lv, score, er, u_bal, u_txn, exp, inc, action, nbo_msg, steps, er_s, bt_s, od_s, mp_s = res
|
| 147 |
report = engine.build_narrative(risk_lv, score, er, u_bal, exp, inc, action, nbo_msg, steps, cust_id, u_txn)
|
| 148 |
+
p1, p2, p3 = engine.create_viz(u_bal, u_txn)
|
| 149 |
|
| 150 |
color = "#ef4444" if risk_lv == "HIGH" else ("#f59e0b" if risk_lv == "MEDIUM" else "#10b981")
|
| 151 |
sidebar = f"""
|
|
|
|
| 157 |
<div class='health-badge'><b>Kesehatan Saldo:</b> {'🔻 Menurun' if bt_s == 1 else '🔺 Stabil'}</div>
|
| 158 |
</div>
|
| 159 |
"""
|
| 160 |
+
return sidebar, report, p1, p2, p3
|
| 161 |
|
| 162 |
with gr.Blocks(css=custom_css) as demo:
|
| 163 |
gr.HTML("<div class='nagari-header'><h1>ARCHON-AI</h1></div>")
|
| 164 |
with gr.Row():
|
| 165 |
with gr.Column(scale=1):
|
| 166 |
id_in = gr.Textbox(label="Customer ID", placeholder="C0001")
|
| 167 |
+
btn = gr.Button("ANALYZE CUSTOMER", variant="primary")
|
| 168 |
out_side = gr.HTML()
|
| 169 |
with gr.Column(scale=2):
|
| 170 |
with gr.Tabs():
|
|
|
|
| 173 |
with gr.Tab("Visualisasi Keuangan"):
|
| 174 |
gr.Markdown("### 1. Uang Masuk vs Uang Keluar")
|
| 175 |
plot_cf = gr.Plot()
|
| 176 |
+
gr.HTML("<div style='background:#f1f5f9; padding:15px; border-radius:8px;'><b>Interpretasi:</b> Batang muda (Inflow) idealnya lebih tinggi dari batang tua (Outflow).</div>")
|
| 177 |
gr.Markdown("---")
|
| 178 |
+
gr.Markdown("### 2. Komposisi Gaya Hidup")
|
| 179 |
plot_dist = gr.Plot()
|
| 180 |
gr.HTML("<div style='background:#f1f5f9; padding:15px; border-radius:8px;'><b>Warna:</b> Biru = Kebutuhan (Essential). Emas = Gaya Hidup (Discretionary).</div>")
|
| 181 |
+
gr.Markdown("---")
|
| 182 |
+
gr.Markdown("### 3. Tren Pertumbuhan Saldo")
|
| 183 |
+
plot_bal = gr.Plot()
|
| 184 |
+
gr.HTML("<div style='background:#f1f5f9; padding:15px; border-radius:8px;'><b>Interpretasi:</b> Menunjukkan daya tahan tabungan Anda terhadap krisis.</div>")
|
| 185 |
|
| 186 |
+
btn.click(fn=run_app, inputs=id_in, outputs=[out_side, out_report, plot_cf, plot_dist, plot_bal])
|
| 187 |
|
| 188 |
demo.launch()
|