iisadia commited on
Commit
5a6b2fc
·
verified ·
1 Parent(s): a8b9f08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,13 +67,13 @@ def analyze_requirement(requirement):
67
  "Rewritten": rewritten
68
  }
69
 
70
- # Function to rewrite requirement
71
  def rewrite_requirement(requirement, defects):
72
  if "no defects" in defects.lower():
73
  return "No modification needed."
74
 
75
- # If defects are found, generate a clearer and more complete requirement
76
- prompt = f"""Rewrite the following requirement to address the defects listed below. Ensure the rewritten requirement is clear, complete, and addresses all issues:
77
 
78
  Original Requirement: {requirement}
79
 
 
67
  "Rewritten": rewritten
68
  }
69
 
70
+ # Function to rewrite requirement concisely
71
  def rewrite_requirement(requirement, defects):
72
  if "no defects" in defects.lower():
73
  return "No modification needed."
74
 
75
+ # If defects are found, generate a concise and clear rewritten requirement
76
+ prompt = f"""Rewrite the following requirement to address the defects listed below. Ensure the rewritten requirement is clear, concise, and free of defects. It should be no more than 1-2 sentences.
77
 
78
  Original Requirement: {requirement}
79