heramb04 commited on
Commit
8726b74
·
verified ·
1 Parent(s): a140390

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -60,13 +60,13 @@ def predict_failure(cpu_current, cpu_sustained, ram_current, temp_current, temp_
60
  # --- 3. The Gradio UI Interface ---
61
  # This replaces your HTML file. Gradio builds the UI for you.
62
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
63
- gr.Markdown("# 🖥️ Server Health Sentinel AI")
64
  gr.Markdown("### AIOps Failure Prediction System (PoC)")
65
  gr.Markdown("This AI predicts if a server will overheat (>80°C) in the next 5 minutes based on telemetry trends.")
66
 
67
  with gr.Row():
68
  with gr.Column():
69
- gr.Markdown("### 🎛️ Live Telemetry Simulation")
70
 
71
  # The 5 Sliders
72
  s_cpu = gr.Slider(0, 100, value=10, label="Current CPU Load (%)")
@@ -78,7 +78,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
78
  btn = gr.Button("Run Prediction", variant="primary")
79
 
80
  with gr.Column():
81
- gr.Markdown("### 🧠 AI Diagnosis")
82
  out_status = gr.Textbox(label="Status")
83
  out_prob = gr.Textbox(label="Failure Probability")
84
 
 
60
  # --- 3. The Gradio UI Interface ---
61
  # This replaces your HTML file. Gradio builds the UI for you.
62
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
63
+ gr.Markdown("# Server Health Sentinel AI")
64
  gr.Markdown("### AIOps Failure Prediction System (PoC)")
65
  gr.Markdown("This AI predicts if a server will overheat (>80°C) in the next 5 minutes based on telemetry trends.")
66
 
67
  with gr.Row():
68
  with gr.Column():
69
+ gr.Markdown("### Live Telemetry Simulation")
70
 
71
  # The 5 Sliders
72
  s_cpu = gr.Slider(0, 100, value=10, label="Current CPU Load (%)")
 
78
  btn = gr.Button("Run Prediction", variant="primary")
79
 
80
  with gr.Column():
81
+ gr.Markdown("### AI Diagnosis")
82
  out_status = gr.Textbox(label="Status")
83
  out_prob = gr.Textbox(label="Failure Probability")
84