Spaces:
forestmap-ai
/
Runtime error

James Ball commited on
Commit
25fc09d
·
1 Parent(s): ce8e246

Fix example button: resolve relative path before chdir

Browse files

EXAMPLE_FILE is a relative path ("./example_danum_tile.tif") but
run_detectree2 does os.chdir(workdir) before shutil.copy2, so the
relative path resolves against the temp directory instead of /app.
os.path.abspath() before the chdir fixes this.

Made-with: Cursor

1 file changed +1
app.py+1