Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,8 +38,14 @@ df_recent = pd.read_sql("""
|
|
| 38 |
""", engine)
|
| 39 |
|
| 40 |
col1.metric("Total Tests (24h)", df_recent['total'].iloc[0])
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
# Graphique évolution accuracy
|
| 45 |
df_accuracy = pd.read_sql("""
|
|
|
|
| 38 |
""", engine)
|
| 39 |
|
| 40 |
col1.metric("Total Tests (24h)", df_recent['total'].iloc[0])
|
| 41 |
+
|
| 42 |
+
passed = df_recent['passed'].iloc[0]
|
| 43 |
+
total = df_recent['total'].iloc[0]
|
| 44 |
+
success_rate = (passed / total * 100) if total > 0 else 0
|
| 45 |
+
col2.metric("Taux Réussite", f"{success_rate:.1f}%")
|
| 46 |
+
|
| 47 |
+
avg_duration = df_recent['avg_duration'].iloc[0] or 0
|
| 48 |
+
col3.metric("Durée Moyenne", f"{avg_duration:.0f}ms")
|
| 49 |
|
| 50 |
# Graphique évolution accuracy
|
| 51 |
df_accuracy = pd.read_sql("""
|