Spaces:
Runtime error
Runtime error
Add null check for file upload to show clear error message
Browse files148 unmodified lines149150151152153154148 unmodified linesreturn None, None, None, f"Error: {e}"def infer(file_path, environment, confidence):return run_detectree2(file_path, environment, confidence)def save_to_persistent(path):148 unmodified lines149150151152153154155156148 unmodified linesreturn None, None, None, f"Error: {e}"def infer(file_path, environment, confidence):if file_path is None:return None, None, None, "Error: No file uploaded. Please upload a GeoTIFF (.tif) file first."return run_detectree2(file_path, environment, confidence)def save_to_persistent(path):
app.py+2