mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
Merge pull request #62 from senju1337/fix/OPS-98
fix: Remove back to home button, set DB Path and change Haiku view title
This commit is contained in:
commit
d56f35d80b
3 changed files with 4 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ from __future__ import annotations
|
|||
import os
|
||||
import random
|
||||
from datetime import date
|
||||
from pathlib import Path
|
||||
|
||||
from flask import (Flask, redirect, render_template, request,
|
||||
send_from_directory, url_for)
|
||||
|
|
@ -58,7 +57,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 +134,7 @@ def haiku_view(haiku_id):
|
|||
return render_template(
|
||||
"haiku.html",
|
||||
context=context,
|
||||
title="Haiku of the Day")
|
||||
title="Your Haiku")
|
||||
|
||||
|
||||
@app.route("/prompt")
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
<b>Note:</b> No haikus have been found in the haiku store.
|
||||
</div>
|
||||
{% 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>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue