Useful bot for...stuff.
- Generate Alt Text for all images in a directory through the usage of Copilot ( through vsakkas/sydney.py)
- Python 3.9 or newer
Jarvis can be used in Command mode or CLI mode.
Please check vsakkas/sydney.py prerequisites for setting up the Copilot integration.
| option | long option | description |
|---|---|---|
| -h | --help | Shows a recap of this help section |
| -a | --generate-alt-text | Generate alt text for images found in a selected path |
| -f | --format | Select the format to filter the images |
| -p | --prompt | Use a custom prompt enclosed with " " |
| -v | --verbose | Enable verbose mode |
| -o | --overwrite | Enable overwrite mode |
| command | description |
|---|---|
| help | Shows a recap of this help section |
| exit | Exit from CLI mode |
| set-cookie | Set the cookie needed for Copilot, you'll be prompted to paste your cookie |
| unset-cookie | Delete che cookie needed for Copilot previously set |
Generating alt text for all jpg images found in /images/previousWeek
python jarvis.py -a /images/previousWeek -v -f jpgGenerating alt text for all jpg images found in /images/previousWeek with a custom prompt
python jarvis.py -a /images/previousWeek -f jpg -p "Pretty please generate a very simple alt text for this image"Start Jarvis in CLI mode
python jarvis.pyThis project is licensed under the MIT License - see the LICENSE file for details.