Spaces:
Runtime error
Runtime error
Download frontend/state_handler.py from caltech-fish-counting/fisheye-experimental: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/caltech-fish-counting/fisheye-experimental/resolve/main/frontend/state_handler.py
- Command line
-
hf download hf://spaces/caltech-fish-counting/fisheye-experimental/frontend/state_handler.py
-
curl -L -o state_handler.py https://huggingface.co/spaces/caltech-fish-counting/fisheye-experimental/resolve/main/frontend/state_handler.py
413 Bytes
| def reset_state(result, state): | |
| # Reset Result | |
| result["json_result"] = [] | |
| result["aris_input"] = [] | |
| result["datasets"] = [] | |
| result["path_video"] = [] | |
| result["path_zip"] = [] | |
| result["path_json"] = [] | |
| result["path_marking"] = [] | |
| result["fish_table"] = [] | |
| result["fish_info"] = [] | |
| # Reset State | |
| state['files'] = [] | |
| state['index'] = 0 | |
| state['total'] = 0 | |