Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -5
src/streamlit_app.py
CHANGED
|
@@ -44,11 +44,11 @@ with st.sidebar:
|
|
| 44 |
|
| 45 |
st.divider()
|
| 46 |
st.subheader("💡 批量分析指令 (針對 JSON 檔案)")
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
st.markdown("此指令將對 JSON 檔案中的**每一個 Log 條目**執行一次獨立分析。")
|
| 53 |
|
| 54 |
if uploaded_file and uploaded_file.type == "application/json":
|
|
|
|
| 44 |
|
| 45 |
st.divider()
|
| 46 |
st.subheader("💡 批量分析指令 (針對 JSON 檔案)")
|
| 47 |
+
analysis_prompt = st.text_area(
|
| 48 |
+
"針對每個 Log/Alert 執行的指令",
|
| 49 |
+
value="You are a security expert in charge of analyzing a single alert and prioritizing its criticality. Go over the alert given, and prioritize it. Respond with a clear, structured analysis using the following mandatory sections: \n\n- Criticality/Priority: Is this alert critical? (Answer Yes/No, and provide the overall priority level like High, Medium, or Low.) \n- Why it is Critical/High Priority: Explain the potential impact and why this specific alert requires attention. \n- Action Plan: What should be the immediate steps to address this specific alert? \n\nStrictly use the information in the provided Log.",
|
| 50 |
+
height=200
|
| 51 |
+
)
|
| 52 |
st.markdown("此指令將對 JSON 檔案中的**每一個 Log 條目**執行一次獨立分析。")
|
| 53 |
|
| 54 |
if uploaded_file and uploaded_file.type == "application/json":
|