Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2692,6 +2692,44 @@ def create_interface():
|
|
| 2692 |
</div>
|
| 2693 |
"""
|
| 2694 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2695 |
# Final HTML with styling
|
| 2696 |
full_html = f"""
|
| 2697 |
<div class="mx-auto p-4" style="font-family: system-ui, -apple-system, sans-serif;">
|
|
@@ -2728,9 +2766,14 @@ def create_interface():
|
|
| 2728 |
.border-b {{ border-bottom: 1px solid #e5e7eb; }}
|
| 2729 |
.overflow-hidden {{ overflow: hidden; }}
|
| 2730 |
.list-none {{ list-style-type: none; }}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2731 |
</style>
|
| 2732 |
{header_html}
|
| 2733 |
{issues_html}
|
|
|
|
| 2734 |
</div>
|
| 2735 |
"""
|
| 2736 |
|
|
|
|
| 2692 |
</div>
|
| 2693 |
"""
|
| 2694 |
|
| 2695 |
+
# Format summary section
|
| 2696 |
+
summary_html = f"""
|
| 2697 |
+
<div class="bg-white rounded-lg shadow-sm mb-6 overflow-hidden">
|
| 2698 |
+
<div class="bg-gray-50 px-6 py-4 border-b">
|
| 2699 |
+
<h2 class="text-lg font-semibold text-gray-800">📋 Next Steps</h2>
|
| 2700 |
+
</div>
|
| 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 each issue category in order of importance:</h3>
|
| 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">3. Common Tips:</h3>
|
| 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>
|
| 2725 |
+
<li class="text-gray-600">• Keep the style manuals and Orders handy while making corrections</li>
|
| 2726 |
+
</ul>
|
| 2727 |
+
</div>
|
| 2728 |
+
</div>
|
| 2729 |
+
</div>
|
| 2730 |
+
</div>
|
| 2731 |
+
"""
|
| 2732 |
+
|
| 2733 |
# Final HTML with styling
|
| 2734 |
full_html = f"""
|
| 2735 |
<div class="mx-auto p-4" style="font-family: system-ui, -apple-system, sans-serif;">
|
|
|
|
| 2766 |
.border-b {{ border-bottom: 1px solid #e5e7eb; }}
|
| 2767 |
.overflow-hidden {{ overflow: hidden; }}
|
| 2768 |
.list-none {{ list-style-type: none; }}
|
| 2769 |
+
.space-y-4 > * + * {{ margin-top: 1rem; }}
|
| 2770 |
+
.text-red-600 {{ color: #dc2626; }}
|
| 2771 |
+
.text-amber-600 {{ color: #d97706; }}
|
| 2772 |
+
.text-green-600 {{ color: #059669; }}
|
| 2773 |
</style>
|
| 2774 |
{header_html}
|
| 2775 |
{issues_html}
|
| 2776 |
+
{summary_html}
|
| 2777 |
</div>
|
| 2778 |
"""
|
| 2779 |
|