I am trying to a build a webapp using flask and python. However I received an error code 500 in the Command Prompt. Could anyone please advise? Below is my code and the attached are the error I received. Thanks PS: the website gave me error when I posted my codes in here so I took a snip of my code instead.
from flask import Flask, render_template
from vsearch import search4letters
app = Flask(__name__)
@app.route('/')
def hello() -> str:
return 'Hello world from Flask!'
@app.route('/search4', methods=['POST'])
def do_search() -> str:
return str(search4letters('life, the universe, and everything' , 'eiru,!'))
@app.route('/entry')
def entry_page() -> 'html':
return render_template('entry.html',
the_title = 'Welcome to search4letters on the web!')
app.run (debug=True)