File size: 2,418 Bytes
d13e054
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Rxple Chat Bot 📢

Welcome to Rxple Chat Bot, an advanced AI chat interface built using Gradio and Hugging Face's Inference Client. This bot is designed to engage in natural conversations while respecting user privacy, ensuring no data is stored.

## Features

- **Privacy-Focused**: Our AI does not store any user data.
- **Flexible Configuration**: Customize system messages, max tokens, temperature, and top-p parameters.
- **Interactive Interface**: Engage in real-time conversations through a user-friendly web interface.

## Getting Started

### Prerequisites

Ensure you have Python installed on your machine. Additionally, install the required packages by running:

```bash
pip install gradio huggingface_hub
```

### Running the Bot

1. Clone this repository or download the script.
2. Run the script using Python:

   ```bash
   python rxple_chat_bot.py
   ```

3. Open your web browser and navigate to `http://localhost:7860` to access the chat interface.

## Usage

The chat interface provides several customization options to tailor the conversation experience:

- **System Message**: Set the initial context or instructions for the AI.
- **Max New Tokens**: Define the maximum number of tokens the AI can generate per response.
- **Temperature**: Adjust the randomness of the AI's responses (lower values make it more deterministic).
- **Top-p (Nucleus Sampling)**: Control the diversity of the generated text (higher values increase diversity).

## Customization

You can further customize the appearance and behavior of the chat interface by modifying the script. Here are some key areas to explore:

- **Custom CSS**: The `opq` variable allows you to change the title color and add a logo.
- **Custom HTML**: The `custom_html` variable lets you inject custom HTML content, such as a welcome message or logo.
- **Description**: Update the `combined_description` variable to provide additional information about the bot.

## Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

**Follow us on [Instagram](https://www.instagram.com/khellon_patel_21)** for updates and more!

Rxple Chat Bot is brought to you by the team behind Qwen2.5-Coder-32B-Instruct. Thank you for using our service! 🌟