Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2404,22 +2404,6 @@ class DocumentCheckResultsFormatter:
|
|
| 2404 |
if len(result.issues) > 10:
|
| 2405 |
output.append(f"\n ... and {len(result.issues) - 10} more similar issues.")
|
| 2406 |
|
| 2407 |
-
# Summary and Next Steps
|
| 2408 |
-
output.append(f"\n{Fore.CYAN}{'='*80}")
|
| 2409 |
-
output.append("NEXT STEPS")
|
| 2410 |
-
output.append(f"{'='*80}{Style.RESET_ALL}")
|
| 2411 |
-
output.append("1. Review each issue category in order of importance:")
|
| 2412 |
-
output.append(" - Critical: Heading and terminology issues")
|
| 2413 |
-
output.append(" - Important: Acronym definitions and section references")
|
| 2414 |
-
output.append(" - Standard: Formatting and spacing issues")
|
| 2415 |
-
output.append("\n2. Make corrections using the provided examples as guides")
|
| 2416 |
-
output.append("3. Re-run the document check to verify all issues are resolved")
|
| 2417 |
-
output.append("\n4. Common tips:")
|
| 2418 |
-
output.append(" - Use search/replace for consistent fixes")
|
| 2419 |
-
output.append(" - Update your document template to prevent future issues")
|
| 2420 |
-
output.append(" - Keep the style manuals and Orders handy while making corrections")
|
| 2421 |
-
output.append(f"\n{Fore.CYAN}{'='*80}{Style.RESET_ALL}\n")
|
| 2422 |
-
|
| 2423 |
return '\n'.join(output)
|
| 2424 |
|
| 2425 |
def save_report(self, results: Dict[str, Any], filepath: str, doc_type: str) -> None:
|
|
@@ -2701,24 +2685,16 @@ def create_interface():
|
|
| 2701 |
<div class="px-6 py-4">
|
| 2702 |
<div class="space-y-4">
|
| 2703 |
<div>
|
| 2704 |
-
<h3 class="font-medium text-gray-800 mb-2">1. Review
|
| 2705 |
-
<ul class="list-none space-y-2 ml-4">
|
| 2706 |
-
<li class="text-red-600">• Critical: Heading and terminology issues</li>
|
| 2707 |
-
<li class="text-amber-600">• Important: Acronym definitions and section references</li>
|
| 2708 |
-
<li class="text-green-600">• Standard: Formatting and spacing issues</li>
|
| 2709 |
-
</ul>
|
| 2710 |
-
</div>
|
| 2711 |
-
|
| 2712 |
-
<div>
|
| 2713 |
-
<h3 class="font-medium text-gray-800 mb-2">2. Action Items:</h3>
|
| 2714 |
<ul class="list-none space-y-2 ml-4">
|
|
|
|
| 2715 |
<li class="text-gray-600">• Make corrections using the provided examples as guides</li>
|
| 2716 |
<li class="text-gray-600">• Re-run document check to verify all issues are resolved</li>
|
| 2717 |
</ul>
|
| 2718 |
</div>
|
| 2719 |
|
| 2720 |
<div>
|
| 2721 |
-
<h3 class="font-medium text-gray-800 mb-2">
|
| 2722 |
<ul class="list-none space-y-2 ml-4">
|
| 2723 |
<li class="text-gray-600">• Use search/replace for consistent fixes</li>
|
| 2724 |
<li class="text-gray-600">• Update your document template to prevent future issues</li>
|
|
|
|
| 2404 |
if len(result.issues) > 10:
|
| 2405 |
output.append(f"\n ... and {len(result.issues) - 10} more similar issues.")
|
| 2406 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2407 |
return '\n'.join(output)
|
| 2408 |
|
| 2409 |
def save_report(self, results: Dict[str, Any], filepath: str, doc_type: str) -> None:
|
|
|
|
| 2685 |
<div class="px-6 py-4">
|
| 2686 |
<div class="space-y-4">
|
| 2687 |
<div>
|
| 2688 |
+
<h3 class="font-medium text-gray-800 mb-2">1. Review and Address Issues:</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2689 |
<ul class="list-none space-y-2 ml-4">
|
| 2690 |
+
<li class="text-gray-600">• Review each issue category systematically</li>
|
| 2691 |
<li class="text-gray-600">• Make corrections using the provided examples as guides</li>
|
| 2692 |
<li class="text-gray-600">• Re-run document check to verify all issues are resolved</li>
|
| 2693 |
</ul>
|
| 2694 |
</div>
|
| 2695 |
|
| 2696 |
<div>
|
| 2697 |
+
<h3 class="font-medium text-gray-800 mb-2">2. Best Practices:</h3>
|
| 2698 |
<ul class="list-none space-y-2 ml-4">
|
| 2699 |
<li class="text-gray-600">• Use search/replace for consistent fixes</li>
|
| 2700 |
<li class="text-gray-600">• Update your document template to prevent future issues</li>
|