SHELLAPANDIANGANHUNGING commited on
Commit
4800253
·
verified ·
1 Parent(s): 9490165

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -1658,12 +1658,6 @@ else:
1658
  st.error(f"Error in Top 10 Operator analysis: {str(e)}")
1659
  st.exception(e) # optionally show full traceback during dev
1660
 
1661
- Baik, berikut adalah **versi Objective 6 yang sudah diperbaiki**, di mana **semua angka persentase** (`X.X% of total alerts`) dalam **teks biasa, `st.warning`, `st.info`, dan `data_point`** akan berwarna **merah (`#d32f2f`)**.
1662
-
1663
- Perubahan utama:
1664
- 1. Ganti `st.warning` dan `st.info` yang berisi teks persentase dengan `st.markdown(..., unsafe_allow_html=True)`.
1665
- 2. Ganti `st.metric` dengan `st.markdown` untuk mendukung HTML.
1666
- 3. Bungkus teks persentase dalam `<span style="color:#d32f2f; font-weight:bold;">...</span>`.
1667
 
1668
 
1669
  # =================== OBJECTIVE 6: Automated Insights & AI Recommendations =====================
 
1658
  st.error(f"Error in Top 10 Operator analysis: {str(e)}")
1659
  st.exception(e) # optionally show full traceback during dev
1660
 
 
 
 
 
 
 
1661
 
1662
 
1663
  # =================== OBJECTIVE 6: Automated Insights & AI Recommendations =====================