问题
I wanna to make a chatbot app with fluter, so i will use flutter only to create the user interface, and i wanna to interact my flutter app with python, so i will receive the question from flutter app and i will send it to python function, and this function should return the answer , and in flutter i will display it to the screen. Hint: 1- I made the UI with flutter. 2- I created python function "It uses Neural Network". 3- I wanna to use python as a function only, i will pass the questions to it, and it should return the answer. ... so i need now to know how to call my python function in flutter app??? enter image description here
回答1:
Try starflut package
It supports flutter to interact with other scripting languages such as python, java, ruby, golang, rust, etc. It is easy to use, supports android and ios platform.
Visit this link, the article might help you
来源:https://stackoverflow.com/questions/62742897/how-to-use-python-code-with-flutter-application