Spaces:
Sleeping
Sleeping
Upload app.py
Browse files262 unmodified lines2632642652662672682692702712722732742 unmodified lines277278279280281282283284285286287288262 unmodified lines"reason": None if t5_available else state["t5_detail"],"input_date": t5_latest.get("input_date"),"prediction": t5_latest.get("prediction") if t5_available else None,"prob_up": t5_latest.get("prob_up") if t5_available else None,"confidence": t5_latest.get("confidence") if t5_available else None,"threshold": t5_latest.get("threshold") if t5_available else None,"model_name": t5_latest.get("model_name"),"validation_accuracy": (payload.get("summary") or {}).get("validation_accuracy"),"test_accuracy": (payload.get("summary") or {}).get("test_accuracy"),},"tplus1": {"available": tplus1_available,2 unmodified lines"target_date": tplus1_latest.get("target_date") or state["next_session_date"],"input_date": tplus1_latest.get("input_date"),"prediction": tplus1_latest.get("prediction") if tplus1_available else None,"prob_up": tplus1_latest.get("prob_up") if tplus1_available else None,"confidence": tplus1_latest.get("confidence") if tplus1_available else None,"threshold": tplus1_latest.get("threshold") if tplus1_available else None,"model_name": tplus1_latest.get("model_name"),"validation_accuracy": (payload.get("tplus1_summary") or {}).get("validation_accuracy"),"test_accuracy": (payload.get("tplus1_summary") or {}).get("test_accuracy"),},}return payload262 unmodified lines2632642652662672682692702712722732742752 unmodified lines278279280281282283284285286287288289290262 unmodified lines"reason": None if t5_available else state["t5_detail"],"input_date": t5_latest.get("input_date"),"prediction": t5_latest.get("prediction") if t5_available else None,"prob_up": t5_latest.get("prob_up") if t5_available else None,"confidence": t5_latest.get("confidence") if t5_available else None,"threshold": t5_latest.get("threshold") if t5_available else None,"is_overridden": bool(t5_latest.get("is_overridden")) if t5_available else False,"model_name": t5_latest.get("model_name"),"validation_accuracy": (payload.get("summary") or {}).get("validation_accuracy"),"test_accuracy": (payload.get("summary") or {}).get("test_accuracy"),},"tplus1": {"available": tplus1_available,2 unmodified lines"target_date": tplus1_latest.get("target_date") or state["next_session_date"],"input_date": tplus1_latest.get("input_date"),"prediction": tplus1_latest.get("prediction") if tplus1_available else None,"prob_up": tplus1_latest.get("prob_up") if tplus1_available else None,"confidence": tplus1_latest.get("confidence") if tplus1_available else None,"threshold": tplus1_latest.get("threshold") if tplus1_available else None,"is_overridden": bool(tplus1_latest.get("overlay_changed")) if tplus1_available else False,"model_name": tplus1_latest.get("model_name"),"validation_accuracy": (payload.get("tplus1_summary") or {}).get("validation_accuracy"),"test_accuracy": (payload.get("tplus1_summary") or {}).get("test_accuracy"),},}return payload
app.py+14-12