Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -606,15 +606,16 @@ if st.session_state.execute_batch_analysis and 'json_data_for_batch' in st.sessi
|
|
| 606 |
with st.expander("序列內容 (JSON Format)"):
|
| 607 |
st.code(item["sequence_analyzed"], language='json')
|
| 608 |
st.error(item['analysis_result'])
|
|
|
|
| 609 |
elif is_medium:
|
| 610 |
st.subheader(f"Log/Alert #{item['log_id']} (MEDIUM RISK DETECTED)")
|
| 611 |
with st.expander("序列內容 (JSON Format)"):
|
| 612 |
st.code(item["sequence_analyzed"], language='json')
|
| 613 |
st.warning(item['analysis_result'])
|
|
|
|
| 614 |
|
| 615 |
if item['context']:
|
| 616 |
with st.expander("參考 RAG 片段"): st.code(item['context'])
|
| 617 |
-
st.markdown("---")
|
| 618 |
|
| 619 |
except Exception as e:
|
| 620 |
st.error(f"Error Log {log_id}: {e}")
|
|
|
|
| 606 |
with st.expander("序列內容 (JSON Format)"):
|
| 607 |
st.code(item["sequence_analyzed"], language='json')
|
| 608 |
st.error(item['analysis_result'])
|
| 609 |
+
st.markdown("---")
|
| 610 |
elif is_medium:
|
| 611 |
st.subheader(f"Log/Alert #{item['log_id']} (MEDIUM RISK DETECTED)")
|
| 612 |
with st.expander("序列內容 (JSON Format)"):
|
| 613 |
st.code(item["sequence_analyzed"], language='json')
|
| 614 |
st.warning(item['analysis_result'])
|
| 615 |
+
st.markdown("---")
|
| 616 |
|
| 617 |
if item['context']:
|
| 618 |
with st.expander("參考 RAG 片段"): st.code(item['context'])
|
|
|
|
| 619 |
|
| 620 |
except Exception as e:
|
| 621 |
st.error(f"Error Log {log_id}: {e}")
|