https://github.com/nlqthinh/wibuchatbot
Anime Waifu Chatbot - An AI-powered chatbot with an anime waifu personality! 🌸 Features include chatting, generating anime images, summarizing websites, reading PDFs, retrieving stock prices, and more. Built with Python, Gradio, and OpenAI's API.
https://github.com/nlqthinh/wibuchatbot
anime chatbot diffusers gradio langchain openai pymupdf torch transformers yfinance
Last synced: 3 months ago
JSON representation
Anime Waifu Chatbot - An AI-powered chatbot with an anime waifu personality! 🌸 Features include chatting, generating anime images, summarizing websites, reading PDFs, retrieving stock prices, and more. Built with Python, Gradio, and OpenAI's API.
- Host: GitHub
- URL: https://github.com/nlqthinh/wibuchatbot
- Owner: nlqthinh
- Created: 2025-05-06T08:05:40.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-05-13T12:45:47.000Z (5 months ago)
- Last Synced: 2025-05-20T20:22:49.964Z (5 months ago)
- Topics: anime, chatbot, diffusers, gradio, langchain, openai, pymupdf, torch, transformers, yfinance
- Language: Python
- Homepage:
- Size: 4.99 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anime Waifu Chatbot (Nana-chan)
Welcome to **Nana-chan**, your cute anime waifu chatbot! Nana-chan can perform various tasks including chatting, generating anime images, accessing and summarizing websites, reading and extracting insights from PDF files, and retrieving stock price data. Future updates may add even more features to this delightful assistant.

This is just an illustration image, you can change it in the images folder.
---
## Features
* **Chat**: Communicate with Nana-chan in English, Vietnamese, or even cute Japanese phrases.
* **Generate Anime Images**: Create anime-style images based on prompts.
* **Website Summarization**: Access and summarize content from websites.
* **PDF File Handling**: Upload PDF files for Nana-chan to read and extract insights.
* **Stock Price Retrieval**: Get real-time stock price data for companies.---
## Installation Guide
### 1. Clone the Repository
```bash
$ git clone https://github.com/nlqthinh/wibuchatbot
$ cd wibuchatbot
```### 2. Install Requirements
Ensure you have Python installed (Python 3.8 or higher is recommended). Then, install the required packages:
```bash
$ pip install -r requirements.txt
```### 3. Set Up Environment Variables
Create a `.env` file in the root directory of the project and add the following:
```env
OPENAI_API_KEY=
JINA_API_KEY=
```Replace `` and `` with your actual API keys.
### 4. Modify Nana-chan’s Personality (Optional)
Currently her treat you like her lover. To change the personality of Nana-chan, edit the `system_prompt` variable in `chat_logic.py`. For example:
```python
system_prompt = "Your name will be Nana-chan, my anime cute girl assistant..."
```You can customize her traits, language style, or functionality as desired.
### 5. Run the Application
Start the chatbot using the following command:
```bash
$ python main.py
```---
## Usage Guide
Once the application is running, you will see a Gradio interface. Here’s what you can do:
1. **Chat**: Type messages into the text box, and Nana-chan will respond.
2. **Upload PDF**: Upload a PDF file for Nana-chan to analyze and summarize.
3. **Generate Anime Images**: Ask Nana-chan to create anime images by providing prompts like "Draw a cute anime girl in a futuristic city."
4. **Stock Price Inquiry**: Request real-time stock price information by specifying the company name or symbol.
5. **Summary a website**: Ask Nana-chan by provide an url then ask her anything.---
## Screenshots
Below are some example screenshots of Nana-chan in action:



---
## Notes
* Make sure your GPU supports PyTorch if you want faster image generation.
* PDF functionality uses vector storage; ensure the `data` folder exists for persistent storage.
* For best results, provide well-structured prompts when interacting with Nana-chan.Enjoy your time with Nana-chan! よろしくね\~ (“Yoroshiku ne\~”)