Package: pychatgpt-gui
pyChatGPT GUI: An open-source, low-code python wrapper providing intuitive web GUI for quick and easy usage of the Large Language Models such asChatGPT,AutoGPT,LLaMa,GPT-J, andGPT4Allfor custom-data and pre-trained inferences.pychatgpt_guipypi:https://pypi.org/project/pychatgpt_gui.. image:: images/main_ui.pngCheck the Related Blog-https://ajay-arunachalam08.medium.com/Check the Related Blog-https://ajay-arunachalam08.medium.com/About pyChatGPT GUIpyChatGPT_GUIis a simple, ease-to-use Python GUI Wrapper built for unleashing the power of GPT.pyChatGPT_GUIprovides an easy web interface to access the large language models (llm's) with several built-in application utilities for direct use. One can leverage ChatGPT, AutoGPT, LLaMa, GPT-J, and GPT4All models with pre-trained inferences and for your own data while democratizing the complex workflows. It provides a verysimple,easy-to-useandlow-codesolution.pyChatGPT_GUIis concieved, designed and developed byAjay Arunachalam-https://www.linkedin.com/in/ajay-ph-d-4744581a/Please Note:- This work was just started, and by large still work in progress.The application provides the following services (not limited too):-GetChatGPTinferences on your custom dataSentiment Analyzer withChatGPTChatGPT-based Voice Assistant BotGetAuto-GPTinferences for your requirementConversational Retrieval Question & Answer (QA) Chain BotUsing open-sourceGPT4large language models based onLLaMaandGPT-JGetGPT4Allmodels inferencesPredict label of your inputted text from the predefined tags based onChatGPTWho can try pychatgpt_ui?pyChatGPT_GUIis an open-source package ideal for, but not limited too:-Researchers for quick Proof-Of-Concept (POC) prototyping and testing.Students and Teachers.ML/AI Enthusiasts, and LearnersCitizen Data Scientists who prefer a low code solution for quick testing.Experienced Data Scientists who want to try out different use-cases as per their business context for quick prototyping.Data Science Professionals and Consultants involved in building Proof-Of-Concept (POC) projects.RequirementsPython 3.x.xnumpypandasscipytqdmopenaigpt_index==0.4.24PyPDF2PyCryptodomegradioscikit-learnopenai_whisperTTSgTTSffmpegffprobeSpeechRecognitionpyaudioplaysoundlangchainchromadbtiktokenpypdfunstructured[local-inference]nomicpyllamacpppygpt4allwarningsUsage StepsStep 1) Create a virtual environment.. code:: bashpy -3 -m venv <your_env_name>
cd <your_env_name>/Scripts/activate

**or**

conda create -n <your_env_name> python=3.x (or 3.x)
source activate <your_env_name>Step 2) Create the clone of the repository in your created virtual environment.. code:: bash$ git clone https://github.com/ajayarunachalam/pychatgpt_gui
$ cd pychatgpt_gui
$ sudo bash setup.sh

**or**

$ git clone https://github.com/ajayarunachalam/pychatgpt_gui
$ cd pychatgpt_gui
$ sudo bash setup.sh or python setup.py install

**or**

>>> git clone https://github.com/ajayarunachalam/pychatgpt_gui
>>> cd pychatgpt_gui
>>> pip install -r requirements.txtStep 3) Setup the environment configuration for using OpenAI through API. Enter your OpenAI api key in the "api_key.json" file. Note:- Please replace the null string with your key. Check this link on how to get an OpenAI API key -https://www.howtogeek.com/885918/how-to-get-an-openai-api-key/Step 4) Download the GPT4All model fromhttp://gpt4all.io/models/ggml-gpt4all-l13b-snoozy.binand place it under the models/ folder. Alternatively, you can also use GPT4All-J model which can be downloaded from here -https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.binand similarly place it under the models/ folder in the root directory.Step 5) Add your own set of documents to train the chatGPT AI bot under the docs/ folder. You could use multiple text files, Scanned files, PDF files, etc. Note:- If you have a large table in Excel, you can import it as a CSV or PDF file and then add it to the "docs" folder.Step 6) Add your own custom documents to train the Q&A chatbot with Conversational Retrieval Chain under the qa_docs/ folder. You can use any of the following file types: text files, pdf files, docx files, and log filesStep 7) Launch the APPLinux users navigate within the cloned folder and type in "sudo bash run_app_linux.sh" in the terminalWindows users within the cloned folder just simply double-click the "run_app_windows.bat" file. Note:- Open the file with an Editor and replace with your virtual directory path within the fileThe APP will launch with a URL as seen below... image:: images/app_run.pngAPP MAIN WINDOW.. image:: images/main_ui_.pngLicenseCopyright 2022-2023 Ajay Arunachalamajay.arunachalam08@gmail.comPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. © 2023 GitHub, Inc.ReferencesI take this opportunity to acknowledge and thanks theopenai,huggingface,langchain,gpt4all,pygpt4allcommunities.
Also, my special mention to -Ali AbidandTimothy Mugayi.