Skip to content

Commit c0f80e4

Browse files
committed
fix: Update logo configuration and fix Streamlit deprecation warning
- Update logo path to use frontend/Oracle logo.png - Increase logo width from 100px to 200px for better visibility - Fix header rendering to use Streamlit native components - Remove deprecated use_container_width parameter from st.image() - Add Oracle logo file to repository
1 parent 94115f8 commit c0f80e4

3 files changed

Lines changed: 17 additions & 24 deletions

File tree

ai/generative-ai-service/cx-conversations-analysis/files/app/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
SPEECH_BUCKET_OUTPUT_PREFIX = "speech_output"
1717

1818
## Other config params
19-
ORACLE_LOGO = "app_images/oracle_logo.png"
19+
ORACLE_LOGO = "frontend/Oracle logo.png"
2020
UPLOAD_PATH = "uploaded_files"
2121
GENAI_MODELS = {
2222
"OpenAI GPT-OSS 120b": "openai.gpt-oss-120b",
2.26 KB
Loading

ai/generative-ai-service/cx-conversations-analysis/files/app/main.py

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -78,32 +78,25 @@ def encode_logo():
7878

7979
def render_header():
8080
"""
81-
Use the .main-header / .header-content / .oracle-logo styles
82-
from styles.css.
81+
Render header using Streamlit native components for better compatibility.
8382
"""
8483
logo_b64 = encode_logo()
85-
logo_html = ""
86-
if logo_b64:
87-
logo_html = (
88-
f'<img src="data:image/png;base64,{logo_b64}" '
89-
f'class="oracle-logo" alt="Oracle logo" />'
84+
85+
# Use columns for centered layout
86+
col1, col2, col3 = st.columns([1, 2, 1])
87+
88+
with col2:
89+
if logo_b64:
90+
st.image(
91+
f"data:image/png;base64,{logo_b64}",
92+
width=200
93+
)
94+
st.markdown("### Audio Call Analyzer")
95+
st.markdown(
96+
"Upload one or more calls, generate diarized transcripts and LLM-powered "
97+
"summaries, and explore batch-level insights."
9098
)
91-
92-
st.markdown(
93-
f"""
94-
<header class="main-header">
95-
<div class="header-content">
96-
{logo_html}
97-
<h1>Audio Call Analyzer</h1>
98-
<p>
99-
Upload one or more calls, generate diarized transcripts and LLM-powered
100-
summaries, and explore batch-level insights.
101-
</p>
102-
</div>
103-
</header>
104-
""",
105-
unsafe_allow_html=True,
106-
)
99+
st.markdown("---")
107100

108101

109102
def parse_llm_json(raw_summary: str):

0 commit comments

Comments
 (0)