Skip to content

SSL-ACTX/PyQT_C.AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyQT_C.AI Logo

CharacterAI Chatbot - PyQt5 🤖💬

CharacterAI chatbot with GUI using PyQt5. Enjoy a rich and interactive chatting experience with markdown support, persistent chat history, and optional voice output powered by PyCharacterAI and characterai libraries.

✨ Key Features

  • Intuitive UI: A user-friendly PyQt5 interface for seamless chatting.
  • Markdown: AI responses are rendered with full markdown support, including code snippets and formatted text.
  • Chat History: Conversations are automatically saved and restored for continuous interaction.
  • Voice Output (Optional): Enable voice output to hear the AI's responses using the power of PyCharacterAI (requires setup).
  • Dark Mode Support: Switch to a dark theme for comfortable late-night chatting.

🚀 Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/SSL-ACTX/PyQT_C.AI.git
    cd PyQT_C.AI
  2. Install the dependencies:

    pip install -r requirements.txt

Configuration

  1. Edit config.ini: This file holds your Character AI credentials.
    [DEFAULT]
    token = YOUR_CHARACTERAI_TOKEN  ; See aiocai's docs
    char_id = YOUR_CHARACTER_ID       ; See aiocai's docs

Running the Chatbot

  1. Start the application:

    python main.py
    • Dark Mode: To launch the chatbot in dark mode, use:
      python main.py --dark

🗣️ Enabling Voice Output (Optional)

  1. Ensure PyCharacterAI is configured: The script leverages PyCharacterAI for voice generation. Double-check its installation and setup instructions (see PyCharacterAI Repository).
  2. Enable the "Voice Output" toggle within the chatbot interface.

Note: Voice output requires a valid Character AI token and relies on the capabilities of PyCharacterAI.

🖼️ Screenshots

Light Mode Dark Mode

🤝 Contributing

Contributions are welcome! Feel free to submit pull requests with improvements, bug fixes, or new features. Please follow the existing code style and include appropriate tests.

📝 License

MIT License

⭐️ Like it?

If you find this project cool, please consider giving it a star ⭐.

About

Testing C.AI unofficial API wrapper in PyQt5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages