Sending data from rfid to flask

good day !
i am working on a student authentication project in which the student swipes his rfid card over rc522 reader and the laptip webcam captures the photo of the student to authenticate.
i am using flask for this project.
only thing is that the rfid script will run on the pi and face recognition script will run on the laptop.
need to know how to send the rfid data over to the flask.