Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ import kaleido
|
|
| 13 |
|
| 14 |
# =================== PAGE CONFIG ===================
|
| 15 |
st.set_page_config(
|
| 16 |
-
page_title="
|
| 17 |
page_icon="",
|
| 18 |
layout="wide",
|
| 19 |
initial_sidebar_state="expanded"
|
|
@@ -330,9 +330,8 @@ with st.container():
|
|
| 330 |
with col2:
|
| 331 |
st.markdown("""
|
| 332 |
<div class="header-title">
|
| 333 |
-
<h1 style="margin-bottom:6px;">
|
| 334 |
<p style="color:#546e7a; font-size:1.05em; margin-top:-8px;">
|
| 335 |
-
Operational Risk Intelligence for Audit & Compliance
|
| 336 |
</p>
|
| 337 |
</div>
|
| 338 |
""", unsafe_allow_html=True)
|
|
@@ -1096,8 +1095,8 @@ if WORDCLOUD_AVAILABLE:
|
|
| 1096 |
if text.strip(): # Pastikan teks tidak kosong setelah pembersihan
|
| 1097 |
# Buat WordCloud
|
| 1098 |
wordcloud = WordCloud(
|
| 1099 |
-
width=
|
| 1100 |
-
height=
|
| 1101 |
background_color='white',
|
| 1102 |
colormap='viridis',
|
| 1103 |
max_words=100,
|
|
@@ -1106,10 +1105,10 @@ if WORDCLOUD_AVAILABLE:
|
|
| 1106 |
).generate(text)
|
| 1107 |
|
| 1108 |
# Plot menggunakan matplotlib
|
| 1109 |
-
fig, ax = plt.subplots(figsize=(
|
| 1110 |
ax.imshow(wordcloud, interpolation='bilinear')
|
| 1111 |
ax.axis('off')
|
| 1112 |
-
ax.set_title(title, fontsize=
|
| 1113 |
plt.tight_layout()
|
| 1114 |
|
| 1115 |
# Tampilkan di Streamlit
|
|
|
|
| 13 |
|
| 14 |
# =================== PAGE CONFIG ===================
|
| 15 |
st.set_page_config(
|
| 16 |
+
page_title="Proactive Safety Intelligence & Analytics Dashboard",
|
| 17 |
page_icon="",
|
| 18 |
layout="wide",
|
| 19 |
initial_sidebar_state="expanded"
|
|
|
|
| 330 |
with col2:
|
| 331 |
st.markdown("""
|
| 332 |
<div class="header-title">
|
| 333 |
+
<h1 style="margin-bottom:6px;">Proactive Safety Intelligence & Analytics Dashboard</h1>
|
| 334 |
<p style="color:#546e7a; font-size:1.05em; margin-top:-8px;">
|
|
|
|
| 335 |
</p>
|
| 336 |
</div>
|
| 337 |
""", unsafe_allow_html=True)
|
|
|
|
| 1095 |
if text.strip(): # Pastikan teks tidak kosong setelah pembersihan
|
| 1096 |
# Buat WordCloud
|
| 1097 |
wordcloud = WordCloud(
|
| 1098 |
+
width=200,
|
| 1099 |
+
height=100,
|
| 1100 |
background_color='white',
|
| 1101 |
colormap='viridis',
|
| 1102 |
max_words=100,
|
|
|
|
| 1105 |
).generate(text)
|
| 1106 |
|
| 1107 |
# Plot menggunakan matplotlib
|
| 1108 |
+
fig, ax = plt.subplots(figsize=(4, 3))
|
| 1109 |
ax.imshow(wordcloud, interpolation='bilinear')
|
| 1110 |
ax.axis('off')
|
| 1111 |
+
ax.set_title(title, fontsize=12)
|
| 1112 |
plt.tight_layout()
|
| 1113 |
|
| 1114 |
# Tampilkan di Streamlit
|