mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
ci: automatic Python Formatter changes
This commit is contained in:
parent
c705e863d1
commit
740358ae72
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ def generate_haiku():
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
json_data = request.get_json()
|
json_data = request.get_json()
|
||||||
prompt = json_data["prompt"]
|
prompt = json_data["prompt"]
|
||||||
if len(prompt)>100:
|
if len(prompt) > 100:
|
||||||
return "Content Too Large", 413
|
return "Content Too Large", 413
|
||||||
haiku = Haiku.request_haiku(prompt)
|
haiku = Haiku.request_haiku(prompt)
|
||||||
id = store.save_haiku(haiku)
|
id = store.save_haiku(haiku)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue