Spaces:
Sleeping
Sleeping
Update src/module/AIP.py
Browse files- src/module/AIP.py +13 -3
src/module/AIP.py
CHANGED
|
@@ -11,9 +11,19 @@ import os
|
|
| 11 |
import re
|
| 12 |
import sys
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
calculate_occupancy_rate,
|
| 18 |
audit_data_quality,
|
| 19 |
get_stock_alerts,
|
|
|
|
| 11 |
import re
|
| 12 |
import sys
|
| 13 |
|
| 14 |
+
try:
|
| 15 |
+
from Function.AIP_Function import (
|
| 16 |
+
calculate_occupancy_rate,
|
| 17 |
+
audit_data_quality,
|
| 18 |
+
get_stock_alerts,
|
| 19 |
+
get_patient_stats
|
| 20 |
+
)
|
| 21 |
+
except ImportError as e:
|
| 22 |
+
# Petit debug au cas où
|
| 23 |
+
st.error(f"Erreur interne dans AIP.py : impossible de trouver AIP_Function. {e}")
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
from Function.AIP_Function import (
|
| 27 |
calculate_occupancy_rate,
|
| 28 |
audit_data_quality,
|
| 29 |
get_stock_alerts,
|