Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
76 |
-
prompt = f"""Rewrite the following requirement to address the defects listed below. Ensure the rewritten requirement is clear,
|
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 |
|