Skip to content

aya1101/Anime_Recommender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📽️ OtakuBot - Movie Recommendation & Chatbot System

OtakuBot là một hệ thống chatbot và gợi ý phim (anime) sử dụng AI, hỗ trợ tiếng Việt, cho phép người dùng:

  • Tìm kiếm thông tin phim
  • Gợi ý phim theo thể loại hoặc nội dung
  • Xem đánh giá, mô tả phim
  • Chat hỏi đáp về phim qua giao diện Gradio

🚀 Tính năng chính

  • Chatbot phim: Trả lời tự động các câu hỏi về phim dựa trên dữ liệu phim có sẵn.
  • Gợi ý phim: Đề xuất phim dựa trên phim yêu thích hoặc thể loại bạn chọn.

Cài đặt

  1. Clone repo:

    git clone https://github.com/<your-username>/Anime_Chatbot.git
    cd Anime_Chatbot
  2. Tạo virtual environment (khuyến nghị):

    python -m venv .venv
    .venv\Scripts\activate  # Windows
    # hoặc
    source .venv/bin/activate  # Linux/Mac
  3. Cài đặt các thư viện cần thiết:

    pip install -r requirements.txt
  4. Tạo file .env và điền token HuggingFace:

    HUGGINGFACE_API_TOKEN=your_huggingface_token
    DB_HOST=localhost
    DB_USER=root
    DB_PASSWORD=
    DB_NAME=movies_db
  5. Chuẩn bị dữ liệu phim:
    Đặt file data_movies.json vào thư mục data/ theo cấu trúc mẫu.

🏃‍♂️ Chạy chatbot

python Chatbot/chatbot_local.py

Sau đó mở đường link Gradio để chat với bot.

📝 Cách sử dụng

  • Chatbot: Nhập câu hỏi về phim, thể loại, đánh giá, v.v.
  • Gợi ý phim: Chạy script recommendation để nhận đề xuất phim theo sở thích.

Cấu trúc thư mục

Recommendation_System/
│
├── Chatbot/
│   ├── chatbot_local.py
│   ├── recomendation_local.py
│   └── ...
├── data/
│   ├── data_movies.json
│   └── stopwords-vi.txt
├── .env.example
├── requirements.txt
└── README.md

Tham khảo


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published