refactor: Remove unneded line

Refs: OPS-12
This commit is contained in:
Alivecow 2025-03-05 20:29:47 +01:00
parent 7c304eaa3c
commit fb5c28c891

View file

@ -52,7 +52,6 @@ def prompt_view():
@app.route("/api/v1/haiku", methods=['POST']) @app.route("/api/v1/haiku", methods=['POST'])
def generate_haiku(): def generate_haiku():
prompt = "a"
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"]