diff --git a/senju/main.py b/senju/main.py index 15b232e..9f782a8 100644 --- a/senju/main.py +++ b/senju/main.py @@ -45,3 +45,10 @@ def prompt_view(): "prompt.html", title="Haiku generation" ) + +@app.route("/scan") +def scan_view(): + return render_template( + "scan.html", + title="Image scanning" + ) diff --git a/senju/templates/base.html b/senju/templates/base.html index fa78de1..070a240 100644 --- a/senju/templates/base.html +++ b/senju/templates/base.html @@ -43,6 +43,11 @@ {% if request.endpoint == 'prompt_view' %} bg-gray-900 text-white {% else %} text-gray-300 hover:bg-gray-700 hover:text-white {% endif %}"> Haiku generation + + Image scanning + Information diff --git a/senju/templates/scan.html b/senju/templates/scan.html new file mode 100644 index 0000000..65f7bfd --- /dev/null +++ b/senju/templates/scan.html @@ -0,0 +1,107 @@ +{% extends "base.html" %} + +{% block content %} + + + + + + Image Upload with Preview + + + + + + Upload your image + + + + + + + + Click to upload or drag and drop + SVG, PNG, JPG or GIF (MAX. 800x400px) + + + + + + + + + + + + + + + + + + + Submit + + + + + Response: + Waiting for input... + + + + + +{% endblock %} +
Click to upload or drag and drop
SVG, PNG, JPG or GIF (MAX. 800x400px)
Waiting for input...