I developed an ML model which requires two arguments, which are the path of the two files used by the model function. The task at hand requires a web page which could take those arguments for the model and deliver it to the function. 
The job could also be done using Tkinter in python for developing a GUI Frame, but my situation requires a web page for further development.
You could use flask, pyramid, or django to make a web-app that will call your ML function.It doesent have to be hosted on a server you can run it locally on your computer.
What isn't clear is why in your particular case you can't use Tkinter. Is your webpage suppose to be accesed by someone else ? From outside you local network ? 
The question isn't verry clear.
How to run a python script from a HTML page without the use of a server? It should serve the purpose of a GUI Frame