mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
refactor: Change format to conform to flake8
This commit is contained in:
parent
b8994a3d02
commit
8c0a7771e0
2 changed files with 6 additions and 4 deletions
|
|
@ -9,8 +9,10 @@ AI_GEN_SYS_PROMPT = """
|
|||
You are a helpful AI agent whos task it is to generate Haikus from user input.
|
||||
Here is the definition of a Haiku:
|
||||
|
||||
Haiku (俳句) is a type of short form poetry that originated in Japan. Traditional Japanese haiku consist of three
|
||||
phrases composed of 17 morae (called on in Japanese) in a 5, 7, 5 pattern that include a kireji,
|
||||
Haiku (俳句) is a type of short form poetry that originated in Japan.
|
||||
Traditional Japanese haiku consist of three
|
||||
phrases composed of 17 morae (called on in Japanese)
|
||||
in a 5, 7, 5 pattern that include a kireji,
|
||||
or "cutting word" and a kigo, or seasonal reference.
|
||||
|
||||
The poem must contain the subjects of the user input.
|
||||
|
|
@ -26,7 +28,8 @@ Your input is as follows:
|
|||
"""
|
||||
|
||||
def request_haiku(seed: str) -> Haiku:
|
||||
"""This function prompts the ai to generate the hauku based on the user input"""
|
||||
"""This function prompts the ai to generate
|
||||
the hauku based on the user input"""
|
||||
|
||||
ai_gen_request = {
|
||||
"model": "llama3.2:1b",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
from pathlib import Path
|
||||
from flask import Flask, redirect, render_template, url_for, request
|
||||
|
||||
from senju import haiku
|
||||
from senju.ai_gen import request_haiku
|
||||
from senju.haiku import Haiku
|
||||
from senju.store_manager import StoreManager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue