Compare commits

..

No commits in common. "master" and "v0.1.0" have entirely different histories.

5 changed files with 9 additions and 14 deletions

View file

@ -1,14 +1,5 @@
# Changelog # Changelog
## [0.1.1](https://github.com/senju1337/senju/compare/v0.1.0...v0.1.1) (2025-03-28)
### Bug Fixes
* Remove back to home button, set DB Path and change Haiku view title ([d56f35d](https://github.com/senju1337/senju/commit/d56f35d80bbfea6499a120ca71397b18eb5ef7b6))
* Remove back to home button, set DB Path and change Haiku view title ([de99b55](https://github.com/senju1337/senju/commit/de99b552a40b7d1738ce478c89dc3f4e50383f08))
* Remove unused import ([f0113f5](https://github.com/senju1337/senju/commit/f0113f5d5dd91c1c1cc6632ec95dc7f3e9cdd3eb))
## 0.1.0 (2025-03-27) ## 0.1.0 (2025-03-27)

View file

@ -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 - **🎏 AI-Powered Haiku Generation**: Create beautiful three-line haiku poetry from text prompts
- **🖼️ Image-to-Haiku**: Turn uploaded images into poetic haiku (experimental) - **🖼️ Image-to-Haiku**: Turn uploaded images into poetic haiku (experimental)
- **🔍 Display Haiku**: View your previously generated haiku - **🔍 Browse Existing Haiku**: Gallery view of previously generated poetry
- **💾 Persistent Storage**: All generated haiku are stored for future retrieval - **💾 Persistent Storage**: All generated haiku are stored for future retrieval
- **🖥️ Web Interface**: Clean, efficient, minimalist user experience for human interaction - **🖥️ Web Interface**: Clean, efficient, minimalist user experience for human interaction
- **👂 Accessibility**: Text-to-speech integration for haikus - **👂 Accessibility**: Text-to-speech integration for haikus

View file

@ -1,6 +1,6 @@
[project] [project]
name = "senju" name = "senju"
version = "0.1.1" version = "0.1.0"
description = "API / Webservice for Phrases/Words/Kanji/Haiku" description = "API / Webservice for Phrases/Words/Kanji/Haiku"
authors = [ authors = [
{ name = "Christoph J. Scherr", email = "software@cscherr.de" }, { name = "Christoph J. Scherr", email = "software@cscherr.de" },

View file

@ -47,6 +47,7 @@ from __future__ import annotations
import os import os
import random import random
from datetime import date from datetime import date
from pathlib import Path
from flask import (Flask, redirect, render_template, request, from flask import (Flask, redirect, render_template, request,
send_from_directory, url_for) send_from_directory, url_for)
@ -57,7 +58,7 @@ from senju.store_manager import StoreManager
app = Flask(__name__) app = Flask(__name__)
store = StoreManager() store = StoreManager(Path("/tmp/store.db"))
stored_date = date.today() stored_date = date.today()
random_number = 1 random_number = 1
@ -134,7 +135,7 @@ def haiku_view(haiku_id):
return render_template( return render_template(
"haiku.html", "haiku.html",
context=context, context=context,
title="Your Haiku") title="Haiku of the Day")
@app.route("/prompt") @app.route("/prompt")

View file

@ -15,7 +15,10 @@
<b>Note:</b> No haikus have been found in the haiku store. <b>Note:</b> No haikus have been found in the haiku store.
</div> </div>
{% endif %} {% endif %}
<a href="{{ url_for('index_view') }}"
class=" inline-block bg-violet-600 hover:bg-violet-700 text-white font-bold py-2 px-4 rounded-lg">
Back to Home
</a>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}