Inserting Flask into the project

Replacing Raw HTML for flask in the project.