Flask applicatio HTML Code Not Accessing Images

I have written a basic application in flask (in a docker image) which has an HTML page that needs to show two images. Due to some strange problem, the server is getting 404 errors for both of the images even though the images are at the right path. Attached are the screenshots of the directory output, and the error. Following is the HTML tag calling that image file:

<img src="input1.jpg" alt="" width="130" height="100" />

The directory structure in the container leading to the image:

apptemplatesinput1.jpg

The directory structure in the container leading to the HTML page is:

apptemplatesresult.html

Error line:

17.0.1 - - [29/Aug/2020 13:54:47] "GET /templates/input1.jpg HTTP/1.1" 404 -

Thank you.

Go to Source
Author: Muhammad Usman