Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1533,46 +1533,47 @@ with tab_pdf:
|
|
| 1533 |
else:
|
| 1534 |
st.subheader("Données extraites du PDF")
|
| 1535 |
pdf_df = pd.DataFrame(
|
| 1536 |
-
|
| 1537 |
-
|
| 1538 |
-
|
| 1539 |
-
|
| 1540 |
-
|
| 1541 |
-
|
| 1542 |
-
|
| 1543 |
-
|
| 1544 |
-
|
| 1545 |
-
|
| 1546 |
-
|
| 1547 |
-
|
| 1548 |
-
|
| 1549 |
-
|
| 1550 |
-
|
| 1551 |
-
|
| 1552 |
-
|
| 1553 |
-
|
| 1554 |
-
|
| 1555 |
-
|
| 1556 |
-
|
| 1557 |
-
|
| 1558 |
-
|
| 1559 |
-
|
| 1560 |
-
|
| 1561 |
-
|
| 1562 |
-
|
| 1563 |
-
|
| 1564 |
-
|
| 1565 |
-
|
| 1566 |
-
|
| 1567 |
-
|
| 1568 |
-
|
| 1569 |
-
|
| 1570 |
-
|
| 1571 |
-
|
| 1572 |
-
|
| 1573 |
-
|
| 1574 |
-
|
| 1575 |
-
|
|
|
|
| 1576 |
st.dataframe(pdf_df, hide_index=True, use_container_width=True)
|
| 1577 |
|
| 1578 |
st.write(
|
|
|
|
| 1533 |
else:
|
| 1534 |
st.subheader("Données extraites du PDF")
|
| 1535 |
pdf_df = pd.DataFrame(
|
| 1536 |
+
{
|
| 1537 |
+
"Indicateur": [
|
| 1538 |
+
"PDF source",
|
| 1539 |
+
"Allure du PDF",
|
| 1540 |
+
"Type d’attaque estimé",
|
| 1541 |
+
"Transition talon→avant-pied G",
|
| 1542 |
+
"Transition talon→avant-pied D",
|
| 1543 |
+
"Pic force talon G",
|
| 1544 |
+
"Pic force talon D",
|
| 1545 |
+
"Pic force médio-pied G",
|
| 1546 |
+
"Pic force médio-pied D",
|
| 1547 |
+
"Pic force avant-pied G",
|
| 1548 |
+
"Pic force avant-pied D",
|
| 1549 |
+
"Timing pic talon G",
|
| 1550 |
+
"Timing pic talon D",
|
| 1551 |
+
"Timing pic médio-pied G",
|
| 1552 |
+
"Timing pic médio-pied D",
|
| 1553 |
+
"Timing pic avant-pied G",
|
| 1554 |
+
"Timing pic avant-pied D",
|
| 1555 |
+
],
|
| 1556 |
+
"Valeur": [
|
| 1557 |
+
matched_pdf["source_pdf"],
|
| 1558 |
+
f"{matched_pdf['speed_kmh']:.1f} km/h" if pd.notna(matched_pdf.get("speed_kmh")) else "N/A",
|
| 1559 |
+
matched_pdf["attaque_pdf"],
|
| 1560 |
+
f"{matched_pdf['transition_g']:.3f} s" if pd.notna(matched_pdf["transition_g"]) else "N/A",
|
| 1561 |
+
f"{matched_pdf['transition_d']:.3f} s" if pd.notna(matched_pdf["transition_d"]) else "N/A",
|
| 1562 |
+
f"{matched_pdf['heel_force_g']:.1f} N" if pd.notna(matched_pdf["heel_force_g"]) else "N/A",
|
| 1563 |
+
f"{matched_pdf['heel_force_d']:.1f} N" if pd.notna(matched_pdf["heel_force_d"]) else "N/A",
|
| 1564 |
+
f"{matched_pdf['mid_force_g']:.1f} N" if pd.notna(matched_pdf["mid_force_g"]) else "N/A",
|
| 1565 |
+
f"{matched_pdf['mid_force_d']:.1f} N" if pd.notna(matched_pdf["mid_force_d"]) else "N/A",
|
| 1566 |
+
f"{matched_pdf['fore_force_g']:.1f} N" if pd.notna(matched_pdf["fore_force_g"]) else "N/A",
|
| 1567 |
+
f"{matched_pdf['fore_force_d']:.1f} N" if pd.notna(matched_pdf["fore_force_d"]) else "N/A",
|
| 1568 |
+
f"{matched_pdf['heel_peak_time_pct_g']:.1f} %" if pd.notna(matched_pdf["heel_peak_time_pct_g"]) else "N/A",
|
| 1569 |
+
f"{matched_pdf['heel_peak_time_pct_d']:.1f} %" if pd.notna(matched_pdf["heel_peak_time_pct_d"]) else "N/A",
|
| 1570 |
+
f"{matched_pdf['mid_peak_time_pct_g']:.1f} %" if pd.notna(matched_pdf["mid_peak_time_pct_g"]) else "N/A",
|
| 1571 |
+
f"{matched_pdf['mid_peak_time_pct_d']:.1f} %" if pd.notna(matched_pdf["mid_peak_time_pct_d"]) else "N/A",
|
| 1572 |
+
f"{matched_pdf['fore_peak_time_pct_g']:.1f} %" if pd.notna(matched_pdf["fore_peak_time_pct_g"]) else "N/A",
|
| 1573 |
+
f"{matched_pdf['fore_peak_time_pct_d']:.1f} %" if pd.notna(matched_pdf["fore_peak_time_pct_d"]) else "N/A",
|
| 1574 |
+
],
|
| 1575 |
+
}
|
| 1576 |
+
)
|
| 1577 |
st.dataframe(pdf_df, hide_index=True, use_container_width=True)
|
| 1578 |
|
| 1579 |
st.write(
|