Spaces:
Runtime error
Runtime error
Add null check for file upload to show clear error message
Browse files148 unmodified lines149150151152153154155156148 unmodified lines return 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