Skip to content

linkhanthtel/cosmic-ai

Repository files navigation

Cosmic AI

Installation

  1. Clone or download this repository

    cd cosmic-ai
  2. Install Python dependencies

    pip install -r requirements.txt
  3. Run the application

    python app.py
  4. Open your browser Navigate to http://localhost:8080

Usage

1. Adding Training Data

  1. In the "Training Data Management" section, enter a question and its corresponding answer
  2. Click "Add Data" to add it to your training dataset
  3. Repeat this process to build up your knowledge base

2. Training the Model

  1. After adding some training data, click "Retrain Model"
  2. The system will train the AI model with your data
  3. You'll see a success message when training is complete

File Structure

cosmic-ai/
├── app.py                 # Main Flask application
├── chatbot.py            # Chatbot logic and training
├── requirements.txt      # Python dependencies
├── templates/
│   └── index.html        # Web interface
├── data/
│   └── training_data.json # Your training data (auto-created)
├── models/               # Trained models (auto-created)
│   ├── chatbot_model.pkl
│   ├── vectorizer.pkl
│   └── label_encoder.pkl
└── README.md

About

AI powered productivity app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published