From de99b552a40b7d1738ce478c89dc3f4e50383f08 Mon Sep 17 00:00:00 2001 From: 0xjrx Date: Fri, 28 Mar 2025 12:25:05 +0100 Subject: [PATCH] fix: Remove back to home button, set DB Path and change Haiku view title Refs: OPS-98 --- README.md | 2 +- senju/main.py | 4 ++-- senju/templates/index.html | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 014997c..9a67c31 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Senju (千手, "thousand hands") is a web service for haiku poetry generation an - **🎏 AI-Powered Haiku Generation**: Create beautiful three-line haiku poetry from text prompts - **🖼️ Image-to-Haiku**: Turn uploaded images into poetic haiku (experimental) -- **🔍 Browse Existing Haiku**: Gallery view of previously generated poetry +- **🔍 Display Haiku**: View your previously generated haiku - **💾 Persistent Storage**: All generated haiku are stored for future retrieval - **🖥️ Web Interface**: Clean, efficient, minimalist user experience for human interaction - **👂 Accessibility**: Text-to-speech integration for haikus diff --git a/senju/main.py b/senju/main.py index 28808c3..4df461c 100644 --- a/senju/main.py +++ b/senju/main.py @@ -58,7 +58,7 @@ from senju.store_manager import StoreManager app = Flask(__name__) -store = StoreManager(Path("/tmp/store.db")) +store = StoreManager() stored_date = date.today() random_number = 1 @@ -135,7 +135,7 @@ def haiku_view(haiku_id): return render_template( "haiku.html", context=context, - title="Haiku of the Day") + title="Your Haiku") @app.route("/prompt") diff --git a/senju/templates/index.html b/senju/templates/index.html index 8b3103a..7bebab3 100644 --- a/senju/templates/index.html +++ b/senju/templates/index.html @@ -15,10 +15,7 @@ Note: No haikus have been found in the haiku store. {% endif %} - - Back to Home - + {% endblock %}