Spaces:
Sleeping
Sleeping
File size: 838 Bytes
931223d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # ElephMind Utility Scripts
This directory contains maintenance and debug scripts for the ElephMind backend.
## How to Run
Because these scripts import modules from the parent `server/` directory, you must run them with the parent directory in your `PYTHONPATH`.
**Windows (PowerShell):**
```powershell
$env:PYTHONPATH=".."; python init_admin.py
```
**Linux/Mac:**
```bash
PYTHONPATH=.. python init_admin.py
```
## Available Scripts
- **`init_admin.py`**: Creates the initial 'admin' user with secure password hashing.
- **`verify_admin.py`**: Checks if the admin user exists in the database.
- **`test_auth.py`**: Unit tests for the authentication logic.
- **`debug_inference.py`**: Tests the ML model with a dummy image.
- **`inspect_model.py`**: Prints details about the loaded PyTorch model.
|