=====================================
A Python Script for Converting LM Studio Conversation Files to Plaintext or HTML
Before you can use this script, ensure that you have:
- Python 3.8 or higher installed on your system.
- pip, the Python package manager, installed on your system.
To install and run the script, follow these steps:
Run the following command in your terminal to clone this repository:
git clone https://github.com/mixbits/LMStudio-JSON2plaintext.git
Run the following command in your terminal to navigate to the project directory:
cd LMStudio-JSON2plaintext
This script requires certain packages to be installed on your system. You can install them by running the following command:
pip install -r requirements.txt
This will install all required packages specified in requirements.txt
.
Finally, execute the following command to run the script:
python LMStudio-JSON2plaintext.py JSONexample.json
Note: Make sure to replace 'JSONexample.json' with the JSON conversation file stored within the file directory
If you encounter any issues during installation or running the script, please refer to our troubleshooting guide:
- Ensure that pip is installed on your system and try running
pip install -r requirements.txt --upgrade
. - If you're using a virtual environment, make sure to activate it before installing dependencies and running the script.
- Ensure that you have necessary permissions to access the input file and write to the output file.