JSenkCC commited on
Commit
082ed0a
·
verified ·
1 Parent(s): 37b31ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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 += "For each relevant function, provide:\n"
238
  prompt += "1. The function name.\n"
239
- prompt += "2. A brief description of its purpose.\n"
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