Skip to content

abs87/GyStaQ-Classifier-Web-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Steps:

  1. Install Python 3 (I have used v3.8)
    to check the version of installed python type the commnad:
    $python3 --version(GNU Linux)
    >python -V (Windows)
  2. Create a virtual environment using the command:
    $python3 -m venv virtual_env_name
    Note: Give any name, in this case it's virtual_env_name
  3. Navigate inside the virtual_env_name by using the command:
    $cd virtual_env_name
  4. To activate the virtual_env_name type the command:
    $ source bin/activate or cd bin && activate (GNU Linux)
    > virtual_env_name\Scripts\activate or cd Scripts && activate (Windows)
  5. To installed required libraries inside the virtual_env_name type the command:
    before installing libraries check the contents of virtual_env_name by using the command:
    $pip freeze
    $pip install -r requirements.txt
  6. Now verify the installation by again typing:
    $pip freeze
  7. Unzip the folder and copy the folder GyStaQ inside the virtual_env_name
  8. To run the project follow the below steps:
    $cd GyStaQ
    $ls
    after executing ls command your file system should be something like this
    ->accounts
    ->classify
    ->GyStaQ
    ->home
    ->templates
    manage.py
    Run the following commands:
    $python manage.py makemigrations
    $python manage.py migrate
    $python manage.py changepassword
    It will ask you to change the password (current username and password are admin)
    $python manage.py collectstatic
    This will create a new folder called assets which will contain all the static files used in the project
    $python manage.py runserver
    And that's it. If everything went well project will be up and running
  9. Also change the email settings in settings.py
  10. Also give the absolute path to the pickled_model.pkl file inside classify app
  11. To deactivate the virtual_env_name type the command:
    $deactivate
  12. Run the server again and again, keep correcting the errors and have fun using GyStaQ Classifier

About

Machine Learning + Django Final Year Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published