Update app.py
Browse files
app.py
CHANGED
@@ -234,11 +234,9 @@ def generate_prompt(file_contents, functionality_description):
|
|
234 |
for file_path, content in file_contents.items():
|
235 |
prompt += f"File: {os.path.basename(file_path)}\n{content}\n\n"
|
236 |
|
237 |
-
prompt += "
|
238 |
prompt += "1. The function name.\n"
|
239 |
-
prompt += "2.
|
240 |
-
prompt += "3. Its inputs and outputs.\n"
|
241 |
-
prompt += "4. Dependencies on other functions or modules.\n"
|
242 |
|
243 |
return prompt
|
244 |
|
|
|
234 |
for file_path, content in file_contents.items():
|
235 |
prompt += f"File: {os.path.basename(file_path)}\n{content}\n\n"
|
236 |
|
237 |
+
prompt += "If the functionality does not exist in the project, return "Functionality does not exist.", otherwise, for each relevant function, provide:\n"
|
238 |
prompt += "1. The function name.\n"
|
239 |
+
prompt += "2. Dependencies on other functions or modules.\n"
|
|
|
|
|
240 |
|
241 |
return prompt
|
242 |
|