Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,15 +64,15 @@ def check_model_drift():
|
|
| 64 |
p_diff = abs(p_pos_label_training_data - p_pos_label_sample_logs)
|
| 65 |
|
| 66 |
if p_diff > 2 * math.sqrt(variance):
|
| 67 |
-
|
| 68 |
else:
|
| 69 |
-
|
| 70 |
|
| 71 |
|
| 72 |
with gr.Blocks() as demo:
|
| 73 |
gr.Markdown("# Real-time Monitoring Dashboard")
|
| 74 |
|
| 75 |
-
gr.Markdown("
|
| 76 |
|
| 77 |
with gr.Row():
|
| 78 |
with gr.Column():
|
|
|
|
| 64 |
p_diff = abs(p_pos_label_training_data - p_pos_label_sample_logs)
|
| 65 |
|
| 66 |
if p_diff > 2 * math.sqrt(variance):
|
| 67 |
+
return "Model Drift Detected! Check logs!"
|
| 68 |
else:
|
| 69 |
+
return "No Model Drift!"
|
| 70 |
|
| 71 |
|
| 72 |
with gr.Blocks() as demo:
|
| 73 |
gr.Markdown("# Real-time Monitoring Dashboard")
|
| 74 |
|
| 75 |
+
gr.Markdown("Model drift detection (every 5 seconds)")
|
| 76 |
|
| 77 |
with gr.Row():
|
| 78 |
with gr.Column():
|