Skip to content

Build-Week-Med4/DS

Repository files navigation

Product Vision Document

Flask API

https://med-cab4.herokuapp.com/

  • A FLASK web application that returns the Effect and Flavor request with a recommendation for a strain of Cannabis to try.

  • /predict = returns recommendation

  • /trending = returns top recommended strain

  • /predict_medical = (coming soon!) return recommend strain based on medical conditions

Setup

  • Activate the virtual environment with
pipenv shell
  • Launch the app inside the virtual environment
FLASK_APP=app.py flask run

Use Example

  • GET a json response with
{
    'effect':'Creative', 
    'flavor':'Apple'
    }
>>> [{"description":{"0":"Alien Sour Apple is a sativa-dominant hybrid...}]
  • Or using URL parameters

https://med-cab4.herokuapp.com/predict?effect=Creative&flavor=Apple

  • note: when assigning key:value pairs, use lowercase 'key' and first letter uppercase 'value'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5