Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def generate_haiku_comment(code):
|
|
12 |
"""
|
13 |
Generates a haiku comment for the given code snippet.
|
14 |
"""
|
15 |
-
|
16 |
f"Analyze the following code and perform two tasks:\n\n"
|
17 |
f"1. Write a poetic haiku as a comment summarizing its purpose or essence.\n"
|
18 |
f"2. Refactor and clean the code while maintaining its functionality.\n\n"
|
|
|
12 |
"""
|
13 |
Generates a haiku comment for the given code snippet.
|
14 |
"""
|
15 |
+
prompt = (
|
16 |
f"Analyze the following code and perform two tasks:\n\n"
|
17 |
f"1. Write a poetic haiku as a comment summarizing its purpose or essence.\n"
|
18 |
f"2. Refactor and clean the code while maintaining its functionality.\n\n"
|