is there a way to save the path of the file uploaded in html page
Using Local Storage (require HTML 5) or cookie will solve your problem
How should I save the path of a image uploaded in html page so that the path can be used as input to the python script