Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,6 +87,8 @@ class BloomPredictionResponse(BaseModel):
|
|
| 87 |
requested_date: str
|
| 88 |
monthly_results: List[MonthlyResult]
|
| 89 |
monthly_curve: Dict[int, float] # month -> percent (sums to ~100)
|
|
|
|
|
|
|
| 90 |
processing_time: float
|
| 91 |
|
| 92 |
# ------------------------------
|
|
@@ -755,6 +757,8 @@ async def predict_bloom(req: BloomPredictionRequest):
|
|
| 755 |
mr.species_top = []
|
| 756 |
|
| 757 |
# include bell verification in response
|
|
|
|
|
|
|
| 758 |
response = {
|
| 759 |
"success": True,
|
| 760 |
"analysis_date": datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"),
|
|
|
|
| 87 |
requested_date: str
|
| 88 |
monthly_results: List[MonthlyResult]
|
| 89 |
monthly_curve: Dict[int, float] # month -> percent (sums to ~100)
|
| 90 |
+
bell_valid: Optional[bool] = None
|
| 91 |
+
bell_diagnostics: Optional[Dict[str, float]] = None
|
| 92 |
processing_time: float
|
| 93 |
|
| 94 |
# ------------------------------
|
|
|
|
| 757 |
mr.species_top = []
|
| 758 |
|
| 759 |
# include bell verification in response
|
| 760 |
+
processing_time = round(time.time() - start_time, 2)
|
| 761 |
+
|
| 762 |
response = {
|
| 763 |
"success": True,
|
| 764 |
"analysis_date": datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"),
|