Git Product home page Git Product logo

flask-deployment-project's Introduction

Introduction

Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries

Installations

Importing libraries

Python

Jupyter notebook (label: good first issue)

Jupyter interactive notebook

Pandas (label: good first issue) Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data. Frame objects, statistical functions, and much more.

numpy (label: good first issue)

pip install numpy It is the core library for scientific computing, which contains a powerful n-dimensional array object.

Scikit-learn is a machine learning library for Python.

pip install scikit-learn

Running the project

  1. Ensure that you are in the project home directory. Create the machine learning model by running below command

python model.py

This would create a serialized version of our model into a file model.pkl

  1. Run app.py using below command to start Flask API

python app.py

If everything goes well, you should be able to see the predcited salary vaule on the HTML page!

  1. You can also send direct POST requests to FLask API using Python's inbuilt request module Run the below command to send the request with some pre-popuated values

python request.py

Conclusion

In this project we learned to deploy simple flask deployment project

1

2

flask-deployment-project's People

Contributors

princedalmet avatar

Forkers

ecogit-stage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.