Coder Social home page Coder Social logo

c-sig / chatgui Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 23 KB

GUI for chatting with ChatGPT in the style of C.AI or Kobold

License: MIT License

Python 100.00%
ai characterai chatbot chatbot-application chatgpt elevenlabs kobold koboldai openai openai-api

chatgui's Introduction

ChatGUI

A Simple GUI to Interact with OpenAI Models

Screenshot

Disclaimer

Please refrain from using this program to break OpenAI Terms of Service!

Requirements

Python 3.9

Usage

0. Download the repository through git or by downloading the .zip file

git clone https://github.com/c-sig/ChatGUI.git

1. Install requirements by opening a terminal in the root folder

pip install -r requirements.txt

2. Put your OpenAI API key in config.ini

api_key = Your key here

2.1 Replace botname with your own value (optional)

botname = Name

2.2 Adapt immersion prompt to your needs (optional)

immersion_prompt = prompt preventing ChatGPT from acting out

3. Launch GUI by opening a terminal in the root folder again

python main.py

Guide

SEND - Sends your message. Pressing [ENTER] on your keyboard also sends your message.

RESET - Clears your chat history.

REGENERATE - Deletes previous bot message and regenerates a reply.

DELETE PREVIOUS - Deletes previous user and bot message from chat history.

SAVE CHAT - Option to save chat history with a custom name. Keep in mind that application can only read chat history if the file is named "working_history.txt"

PROMPT CREATION One way to generate character prompts would be to ask ChatGPT to "pretend they're the character". After they introduce themseves, ask ChatGPT to replace all personal pronouns with "you". Use this to help create your character.

chatgui's People

Contributors

c-sig avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

chatgui's Issues

No module 'gi' error

I installed your system and everything starts correctly. However, there is the following message in my shell window:

Exception in Tkinter callback
Traceback (most recent call last):
File "/home/robert/anaconda3/lib/python3.9/tkinter/init.py", line 1892, in call
return self.func(*args)
File "/home/robert/ChatGUI/main.py", line 204, in send_message
playsound(audiofilepath)
File "/home/robert/anaconda3/lib/python3.9/site-packages/playsound.py", line 91, in _playsoundNix
import gi
ModuleNotFoundError: No module named 'gi'

My system information:
System: Kernel: 6.0.0-6mx-amd64 [6.0.12-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-6.0.0-6mx-amd64
root=UUID= ro quiet splash
Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7
dm: LightDM 1.26.0 Distro: MX-21.3_ahs_x64 Wildflower January 15 2023
base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Desktop System: Gigabyte product: X570 AORUS ELITE WIFI v: -CF serial:
Mobo: Gigabyte model: X570 AORUS ELITE WIFI serial:
UEFI: American Megatrends LLC. v: F37d date: 07/20/2022
CPU: Info: 6-Core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3 family: 19 (25)
model-id: 21 (33) stepping: 0 microcode: A201016 cache: L2: 3 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 88799
Speed: 3719 MHz min/max: 2200/3700 MHz boost: enabled Core speeds (MHz): 1: 3719
2: 2200 3: 4142 4: 4650 5: 2200 6: 3713 7: 3720 8: 2200 9: 3720 10: 4650 11: 3720
12: 3720
Graphics: Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: Micro-Star MSI
driver: nvidia v: 520.56.06 bus-ID: 08:00.0 chip-ID: 10de:2504 class-ID: 0300
Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: loaded: nvidia
display-ID: :0.0 screens: 1

Anyway, I don't know how to proceed. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.