DavidRambeau commited on
Commit
69144ae
·
verified ·
1 Parent(s): b8f74df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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
- #col2.metric("Taux Réussite", f"{df_recent['passed'].iloc[0] / df_recent['total'].iloc[0] * 100:.1f}%")
42
- col3.metric("Durée Moyenne", f"{df_recent['avg_duration'].iloc[0]:.0f}ms")
 
 
 
 
 
 
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("""