Skip to content

allows the conversion of LM Studio conversation files (.JSON) into plaintext or HTML for better readability

Notifications You must be signed in to change notification settings

mixbits/JSON2plaintext-LMStudio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

JSON2plaintext-LMStudio

=====================================

A Python Script for Converting LM Studio Conversation Files to Plaintext or HTML

Prerequisites

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.

Installation Steps

To install and run the script, follow these steps:

Clone the repository


Run the following command in your terminal to clone this repository:

git clone https://github.com/mixbits/LMStudio-JSON2plaintext.git

Navigate to the project directory


Run the following command in your terminal to navigate to the project directory:

cd LMStudio-JSON2plaintext

Install dependencies using pip


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.

Run the script


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

Common Issues

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.

About

allows the conversion of LM Studio conversation files (.JSON) into plaintext or HTML for better readability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages