ScriptsEditor is a powerful and versatile script writing and editing platform designed for developers, scriptwriters, and coding enthusiasts. With features like advanced script execution using at
or crontab
, seamless version control integration, and a generative AI assistant, ScriptsEditor provides a comprehensive and user-friendly environment for coding and script management.
at
or crontab
winget install -e --id Python.Python.3.9
python --version
sudo apt-get update -y
sudo apt-get install -y python3
python3 --version
winget install -e --id Git.Git
git --version
sudo apt-get update -y
sudo apt-get install -y git
git --version
Clone the repository:
git clone https://github.com/Axlfc/ScriptsEditor
Navigate to the project directory:
cd ScriptsEditor
Create a virtual environment:
python -m venv .venv
python3 -m venv .venv
Activate the virtual environment:
.\.venv\Scripts\activate
source .venv/bin/activate
Install the required packages:
On Windows:
.\venv\Scripts\pip install -r requirements.txt
.\venv\Scripts\pip install -r src/models/requirements.txt
.\venv\Scripts\pip install torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
On macOS and Linux:
venv/bin/pip install -r requirements.txt
venv/bin/pip install -r src/models/requirements.txt
venv/bin/pip install torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
Install models:
(TO-DO)
To use the stable-audio-open-1.0
model for audio generation in ScriptsEditor, follow these steps:
Create a Hugging Face Account:
Request Access to the Model:
Generate an API Token:
Use the API Token in ScriptsEditor:
Once you have your API token, you can use it in your ScriptsEditor setup to authenticate requests to the Hugging Face model.
Ensure that your token is securely stored and used according to best practices.
Get to download the model files
Create a new folder in this repository in src/models
named model
mkdir src/models/model
Create a new folder in this repository in src/models/model
named text
mkdir src/models/model/text
Put the .gguf file in src/models/model/text directory.
Save Stable Diffusion model in src/models/model/image
Save Stable Audio model in src/models/model/audio
We finished setting up ScriptsEditor.
Before running ScriptsEditor, you need to set up the AI assistant server. Follow these steps:
Place a valid .gguf
file into the folder src/models/model
. In this example, the file used is llama-2-7b-chat.Q4_K_M.gguf
.
Start the AI assistant server using the following command:
.\.venv\Scripts\python.exe -m llama_cpp.server --port 8004 --model .\src\models\model\llama-2-7b-chat.Q4_K_M.gguf
After setting up and starting the AI assistant server, you can run ScriptsEditor by executing the main.py
script.
.\.venv\Scripts\python main.py
.venv/bin/python main.py
We welcome contributions! If you'd like to contribute to ScriptsEditor, please check our contribution guidelines.
ScriptsEditor is open-source and licensed under the GPL-2.0.