diff --git a/python/image-content-search/src/landingPage/main.py b/python/image-content-search/src/landingPage/main.py index 5ebd22f23d..b66a9985d0 100644 --- a/python/image-content-search/src/landingPage/main.py +++ b/python/image-content-search/src/landingPage/main.py @@ -12,6 +12,8 @@ def handler(event, context): 'Content-Type': 'text/html' }, 'body': file_get_contents("index.html").format(loginPage=login_page) + } + def file_get_contents(filename): with open(filename) as f: - return f.read() \ No newline at end of file + return f.read()