I have a .py file that contains a machine learning with apache spark using mongodb and i want to connect the results of my code to an android application, is this a way to do that with a REST api , I heared about tensorflow and livy!
Asked
Active
Viewed 595 times
1 Answers
1
You have multiple choices for building a REST api:
- Use
flask
package (pip install flask
). It helps you to quickly build a server that can run the python code and is accessible via web. See official website. For small projects, this is my recommendation. - If you are planning on running a TensorFlow model to do the inference, see tensorflow-serving.
- Apache can run python (legacy, 2.7).
- Livy is highly oriented for Spark. See official website.
Good luck!

mr_mo
- 1,401
- 6
- 10