from bottle import route, run, template, static_file
tpl = """
{{ image }}
"""
@route('///')
def index(scene, char_name):
image = f"{char_name}-{scene}.png"
return template(tpl, image=image)
@route('/results/')
def server_static(filename):
return static_file(filename, root='results')
run(host='0.0.0.0', port=8080)