Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +11 -5
src/streamlit_app.py
CHANGED
|
@@ -611,11 +611,17 @@ if st.session_state.execute_batch_analysis and 'json_data_for_batch' in st.sessi
|
|
| 611 |
st.markdown("---")
|
| 612 |
|
| 613 |
elif is_medium:
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 619 |
|
| 620 |
if item['context']:
|
| 621 |
with st.expander("參考 RAG 片段"): st.code(item['context'])
|
|
|
|
| 611 |
st.markdown("---")
|
| 612 |
|
| 613 |
elif is_medium:
|
| 614 |
+
st.subheader(f"Log/Alert #{item['log_id']} (MEDIUM RISK DETECTED)")
|
| 615 |
+
with st.expander("序列內容 (JSON Format)"):
|
| 616 |
+
st.code(item["sequence_analyzed"], language='json')
|
| 617 |
+
st.warning(item['analysis_result'])
|
| 618 |
+
st.markdown("---")
|
| 619 |
+
else:
|
| 620 |
+
st.subheader(f"Log/Alert #{item['log_id']} (LOW RISK DETECTED)")
|
| 621 |
+
with st.expander("序列內容 (JSON Format)"):
|
| 622 |
+
st.code(item["sequence_analyzed"], language='json')
|
| 623 |
+
st.info(item['analysis_result'])
|
| 624 |
+
st.markdown("---")
|
| 625 |
|
| 626 |
if item['context']:
|
| 627 |
with st.expander("參考 RAG 片段"): st.code(item['context'])
|