Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +899 -19
- prompts.txt +2 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: auditai
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,899 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>AuditAI - Internal Audit Assistant</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.sidebar-item.active {
|
| 11 |
+
background-color: #3b82f6;
|
| 12 |
+
color: white;
|
| 13 |
+
}
|
| 14 |
+
.sidebar-item.active:hover {
|
| 15 |
+
background-color: #2563eb;
|
| 16 |
+
}
|
| 17 |
+
.document-preview {
|
| 18 |
+
height: calc(100vh - 200px);
|
| 19 |
+
}
|
| 20 |
+
.chat-messages {
|
| 21 |
+
height: calc(100vh - 250px);
|
| 22 |
+
overflow-y: auto;
|
| 23 |
+
}
|
| 24 |
+
.tab-content {
|
| 25 |
+
display: none;
|
| 26 |
+
}
|
| 27 |
+
.tab-content.active {
|
| 28 |
+
display: block;
|
| 29 |
+
}
|
| 30 |
+
.dropzone {
|
| 31 |
+
border: 2px dashed #cbd5e0;
|
| 32 |
+
transition: all 0.3s ease;
|
| 33 |
+
}
|
| 34 |
+
.dropzone.active {
|
| 35 |
+
border-color: #3b82f6;
|
| 36 |
+
background-color: #eff6ff;
|
| 37 |
+
}
|
| 38 |
+
.skeleton-loader {
|
| 39 |
+
animation: pulse 2s infinite;
|
| 40 |
+
background-color: #e5e7eb;
|
| 41 |
+
}
|
| 42 |
+
@keyframes pulse {
|
| 43 |
+
0%, 100% { opacity: 1; }
|
| 44 |
+
50% { opacity: 0.5; }
|
| 45 |
+
}
|
| 46 |
+
.auth-modal {
|
| 47 |
+
display: none;
|
| 48 |
+
position: fixed;
|
| 49 |
+
top: 0;
|
| 50 |
+
left: 0;
|
| 51 |
+
width: 100%;
|
| 52 |
+
height: 100%;
|
| 53 |
+
background-color: rgba(0,0,0,0.5);
|
| 54 |
+
z-index: 1000;
|
| 55 |
+
justify-content: center;
|
| 56 |
+
align-items: center;
|
| 57 |
+
}
|
| 58 |
+
.auth-modal.active {
|
| 59 |
+
display: flex;
|
| 60 |
+
}
|
| 61 |
+
.progress-bar {
|
| 62 |
+
transition: width 0.3s ease;
|
| 63 |
+
}
|
| 64 |
+
</style>
|
| 65 |
+
</head>
|
| 66 |
+
<body class="bg-gray-50 font-sans">
|
| 67 |
+
<!-- Authentication Modal -->
|
| 68 |
+
<div class="auth-modal" id="auth-modal">
|
| 69 |
+
<div class="bg-white rounded-lg shadow-xl w-full max-w-md">
|
| 70 |
+
<div class="p-6">
|
| 71 |
+
<div class="flex justify-between items-center mb-6">
|
| 72 |
+
<h2 class="text-2xl font-bold text-gray-800" id="auth-modal-title">Sign In</h2>
|
| 73 |
+
<button class="text-gray-500 hover:text-gray-700" id="close-auth-modal">
|
| 74 |
+
<i class="fas fa-times"></i>
|
| 75 |
+
</button>
|
| 76 |
+
</div>
|
| 77 |
+
|
| 78 |
+
<div id="signin-form">
|
| 79 |
+
<div class="mb-4">
|
| 80 |
+
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
| 81 |
+
<input type="email" id="email" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 82 |
+
</div>
|
| 83 |
+
<div class="mb-6">
|
| 84 |
+
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
|
| 85 |
+
<input type="password" id="password" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 86 |
+
</div>
|
| 87 |
+
<button id="signin-btn" class="w-full bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
|
| 88 |
+
Sign In
|
| 89 |
+
</button>
|
| 90 |
+
<div class="mt-4 text-center">
|
| 91 |
+
<button id="show-signup" class="text-blue-600 hover:text-blue-800 text-sm">Don't have an account? Sign Up</button>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
|
| 95 |
+
<div id="signup-form" class="hidden">
|
| 96 |
+
<div class="mb-4">
|
| 97 |
+
<label for="signup-name" class="block text-sm font-medium text-gray-700 mb-1">Full Name</label>
|
| 98 |
+
<input type="text" id="signup-name" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 99 |
+
</div>
|
| 100 |
+
<div class="mb-4">
|
| 101 |
+
<label for="signup-email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
| 102 |
+
<input type="email" id="signup-email" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 103 |
+
</div>
|
| 104 |
+
<div class="mb-4">
|
| 105 |
+
<label for="signup-password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
|
| 106 |
+
<input type="password" id="signup-password" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 107 |
+
</div>
|
| 108 |
+
<div class="mb-6">
|
| 109 |
+
<label for="signup-confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Confirm Password</label>
|
| 110 |
+
<input type="password" id="signup-confirm-password" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 111 |
+
</div>
|
| 112 |
+
<button id="signup-btn" class="w-full bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
|
| 113 |
+
Sign Up
|
| 114 |
+
</button>
|
| 115 |
+
<div class="mt-4 text-center">
|
| 116 |
+
<button id="show-signin" class="text-blue-600 hover:text-blue-800 text-sm">Already have an account? Sign In</button>
|
| 117 |
+
</div>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
|
| 123 |
+
<!-- Main App Container (hidden until authenticated) -->
|
| 124 |
+
<div class="flex h-screen overflow-hidden" id="app-container" style="display: none;">
|
| 125 |
+
<!-- Sidebar -->
|
| 126 |
+
<div class="hidden md:flex md:flex-shrink-0">
|
| 127 |
+
<div class="flex flex-col w-64 bg-white border-r border-gray-200">
|
| 128 |
+
<div class="flex items-center justify-center h-16 px-4 bg-blue-600 text-white">
|
| 129 |
+
<div class="flex items-center">
|
| 130 |
+
<i class="fas fa-shield-alt mr-2 text-xl"></i>
|
| 131 |
+
<span class="text-xl font-semibold">AuditAI</span>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
<div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
|
| 135 |
+
<div class="space-y-1">
|
| 136 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 active">
|
| 137 |
+
<i class="fas fa-home mr-3"></i>
|
| 138 |
+
Dashboard
|
| 139 |
+
</button>
|
| 140 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 141 |
+
<i class="fas fa-file-excel mr-3"></i>
|
| 142 |
+
Data Analysis
|
| 143 |
+
</button>
|
| 144 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 145 |
+
<i class="fas fa-file-contract mr-3"></i>
|
| 146 |
+
Contract Analysis
|
| 147 |
+
</button>
|
| 148 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 149 |
+
<i class="fas fa-comments mr-3"></i>
|
| 150 |
+
Document Chat
|
| 151 |
+
</button>
|
| 152 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 153 |
+
<i class="fas fa-file-invoice mr-3"></i>
|
| 154 |
+
Workpapers
|
| 155 |
+
</button>
|
| 156 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 157 |
+
<i class="fas fa-clipboard-check mr-3"></i>
|
| 158 |
+
Audit Standards
|
| 159 |
+
</button>
|
| 160 |
+
</div>
|
| 161 |
+
|
| 162 |
+
<div class="mt-auto pt-4 border-t border-gray-200">
|
| 163 |
+
<div class="flex items-center px-4 py-3 text-sm font-medium text-gray-700">
|
| 164 |
+
<i class="fas fa-cog mr-3"></i>
|
| 165 |
+
Settings
|
| 166 |
+
</div>
|
| 167 |
+
<div class="flex items-center px-4 py-3 text-sm font-medium text-gray-700">
|
| 168 |
+
<i class="fas fa-question-circle mr-3"></i>
|
| 169 |
+
Help & Support
|
| 170 |
+
</div>
|
| 171 |
+
<button id="signout-btn" class="w-full flex items-center px-4 py-3 text-sm font-medium text-gray-700 hover:bg-gray-100 rounded-md">
|
| 172 |
+
<i class="fas fa-sign-out-alt mr-3"></i>
|
| 173 |
+
Sign Out
|
| 174 |
+
</button>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
|
| 180 |
+
<!-- Mobile sidebar -->
|
| 181 |
+
<div class="md:hidden fixed inset-0 z-40 hidden" id="mobile-sidebar">
|
| 182 |
+
<div class="fixed inset-0 bg-gray-600 bg-opacity-75" aria-hidden="true"></div>
|
| 183 |
+
<div class="relative flex flex-col w-full max-w-xs bg-white">
|
| 184 |
+
<div class="flex items-center justify-center h-16 px-4 bg-blue-600 text-white">
|
| 185 |
+
<div class="flex items-center">
|
| 186 |
+
<i class="fas fa-shield-alt mr-2 text-xl"></i>
|
| 187 |
+
<span class="text-xl font-semibold">AuditAI</span>
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
<div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
|
| 191 |
+
<div class="space-y-1">
|
| 192 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 active">
|
| 193 |
+
<i class="fas fa-home mr-3"></i>
|
| 194 |
+
Dashboard
|
| 195 |
+
</button>
|
| 196 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 197 |
+
<i class="fas fa-file-excel mr-3"></i>
|
| 198 |
+
Data Analysis
|
| 199 |
+
</button>
|
| 200 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 201 |
+
<i class="fas fa-file-contract mr-3"></i>
|
| 202 |
+
Contract Analysis
|
| 203 |
+
</button>
|
| 204 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 205 |
+
<i class="fas fa-comments mr-3"></i>
|
| 206 |
+
Document Chat
|
| 207 |
+
</button>
|
| 208 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 209 |
+
<i class="fas fa-file-invoice mr-3"></i>
|
| 210 |
+
Workpapers
|
| 211 |
+
</button>
|
| 212 |
+
<button class="sidebar-item w-full flex items-center px-4 py-3 text-sm font-medium rounded-md transition-colors duration-200 hover:bg-gray-100">
|
| 213 |
+
<i class="fas fa-clipboard-check mr-3"></i>
|
| 214 |
+
Audit Standards
|
| 215 |
+
</button>
|
| 216 |
+
</div>
|
| 217 |
+
<div class="mt-auto">
|
| 218 |
+
<button id="mobile-signout-btn" class="w-full flex items-center px-4 py-3 text-sm font-medium text-gray-700 hover:bg-gray-100 rounded-md">
|
| 219 |
+
<i class="fas fa-sign-out-alt mr-3"></i>
|
| 220 |
+
Sign Out
|
| 221 |
+
</button>
|
| 222 |
+
</div>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
</div>
|
| 226 |
+
|
| 227 |
+
<!-- Main content -->
|
| 228 |
+
<div class="flex flex-col flex-1 overflow-hidden">
|
| 229 |
+
<!-- Top navigation -->
|
| 230 |
+
<div class="relative z-10 flex-shrink-0 flex h-16 bg-white border-b border-gray-200">
|
| 231 |
+
<button class="md:hidden px-4 border-r border-gray-200 text-gray-500 focus:outline-none" id="mobile-sidebar-toggle">
|
| 232 |
+
<i class="fas fa-bars"></i>
|
| 233 |
+
</button>
|
| 234 |
+
<div class="flex-1 px-4 flex justify-between">
|
| 235 |
+
<div class="flex-1 flex">
|
| 236 |
+
<div class="w-full flex md:ml-0">
|
| 237 |
+
<div class="relative w-full max-w-xl">
|
| 238 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 239 |
+
<i class="fas fa-search text-gray-400"></i>
|
| 240 |
+
</div>
|
| 241 |
+
<input id="search" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm" placeholder="Search" type="search">
|
| 242 |
+
</div>
|
| 243 |
+
</div>
|
| 244 |
+
</div>
|
| 245 |
+
<div class="ml-4 flex items-center md:ml-6">
|
| 246 |
+
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
|
| 247 |
+
<i class="fas fa-bell"></i>
|
| 248 |
+
</button>
|
| 249 |
+
<div class="ml-3 relative">
|
| 250 |
+
<div>
|
| 251 |
+
<button type="button" class="max-w-xs flex items-center text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" id="user-menu" aria-expanded="false" aria-haspopup="true">
|
| 252 |
+
<img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
|
| 253 |
+
</button>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
</div>
|
| 259 |
+
|
| 260 |
+
<!-- Main content area -->
|
| 261 |
+
<div class="flex-1 overflow-auto">
|
| 262 |
+
<!-- Dashboard -->
|
| 263 |
+
<div class="tab-content active p-6" id="dashboard">
|
| 264 |
+
<div class="mb-6">
|
| 265 |
+
<h2 class="text-2xl font-bold text-gray-800">Welcome back, <span id="user-name">Auditor</span></h2>
|
| 266 |
+
<p class="text-gray-600">Here's what's happening with your audits today.</p>
|
| 267 |
+
</div>
|
| 268 |
+
|
| 269 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
|
| 270 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 271 |
+
<div class="flex items-center justify-between">
|
| 272 |
+
<div>
|
| 273 |
+
<p class="text-sm font-medium text-gray-500">Pending Audits</p>
|
| 274 |
+
<p class="text-2xl font-semibold text-gray-800">12</p>
|
| 275 |
+
</div>
|
| 276 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
|
| 277 |
+
<i class="fas fa-clock text-xl"></i>
|
| 278 |
+
</div>
|
| 279 |
+
</div>
|
| 280 |
+
</div>
|
| 281 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 282 |
+
<div class="flex items-center justify-between">
|
| 283 |
+
<div>
|
| 284 |
+
<p class="text-sm font-medium text-gray-500">Completed Audits</p>
|
| 285 |
+
<p class="text-2xl font-semibold text-gray-800">24</p>
|
| 286 |
+
</div>
|
| 287 |
+
<div class="p-3 rounded-full bg-green-100 text-green-600">
|
| 288 |
+
<i class="fas fa-check-circle text-xl"></i>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 293 |
+
<div class="flex items-center justify-between">
|
| 294 |
+
<div>
|
| 295 |
+
<p class="text-sm font-medium text-gray-500">High Risk Findings</p>
|
| 296 |
+
<p class="text-2xl font-semibold text-gray-800">5</p>
|
| 297 |
+
</div>
|
| 298 |
+
<div class="p-3 rounded-full bg-red-100 text-red-600">
|
| 299 |
+
<i class="fas fa-exclamation-triangle text-xl"></i>
|
| 300 |
+
</div>
|
| 301 |
+
</div>
|
| 302 |
+
</div>
|
| 303 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 304 |
+
<div class="flex items-center justify-between">
|
| 305 |
+
<div>
|
| 306 |
+
<p class="text-sm font-medium text-gray-500">AI Processed</p>
|
| 307 |
+
<p class="text-2xl font-semibold text-gray-800">87</p>
|
| 308 |
+
</div>
|
| 309 |
+
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
|
| 310 |
+
<i class="fas fa-robot text-xl"></i>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
</div>
|
| 314 |
+
</div>
|
| 315 |
+
|
| 316 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
| 317 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 318 |
+
<div class="flex items-center justify-between mb-4">
|
| 319 |
+
<h3 class="text-lg font-medium text-gray-900">Recent Activities</h3>
|
| 320 |
+
<button class="text-sm text-blue-600 hover:text-blue-800">View All</button>
|
| 321 |
+
</div>
|
| 322 |
+
<div class="space-y-4">
|
| 323 |
+
<div class="flex items-start">
|
| 324 |
+
<div class="flex-shrink-0 pt-0.5">
|
| 325 |
+
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
|
| 326 |
+
</div>
|
| 327 |
+
<div class="ml-3 flex-1">
|
| 328 |
+
<p class="text-sm font-medium text-gray-900">Jane Cooper</p>
|
| 329 |
+
<p class="text-sm text-gray-500">Uploaded new contract for analysis</p>
|
| 330 |
+
<div class="mt-1 flex items-center text-sm text-gray-500">
|
| 331 |
+
<i class="far fa-clock mr-1"></i>
|
| 332 |
+
<span>3h ago</span>
|
| 333 |
+
</div>
|
| 334 |
+
</div>
|
| 335 |
+
</div>
|
| 336 |
+
<div class="flex items-start">
|
| 337 |
+
<div class="flex-shrink-0 pt-0.5">
|
| 338 |
+
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
|
| 339 |
+
</div>
|
| 340 |
+
<div class="ml-3 flex-1">
|
| 341 |
+
<p class="text-sm font-medium text-gray-900">Michael Smith</p>
|
| 342 |
+
<p class="text-sm text-gray-500">Completed financial audit workpaper</p>
|
| 343 |
+
<div class="mt-1 flex items-center text-sm text-gray-500">
|
| 344 |
+
<i class="far fa-clock mr-1"></i>
|
| 345 |
+
<span>5h ago</span>
|
| 346 |
+
</div>
|
| 347 |
+
</div>
|
| 348 |
+
</div>
|
| 349 |
+
<div class="flex items-start">
|
| 350 |
+
<div class="flex-shrink-0 pt-0.5">
|
| 351 |
+
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
|
| 352 |
+
</div>
|
| 353 |
+
<div class="ml-3 flex-1">
|
| 354 |
+
<p class="text-sm font-medium text-gray-900">John Doe</p>
|
| 355 |
+
<p class="text-sm text-gray-500">Identified 3 high-risk findings in IT audit</p>
|
| 356 |
+
<div class="mt-1 flex items-center text-sm text-gray-500">
|
| 357 |
+
<i class="far fa-clock mr-1"></i>
|
| 358 |
+
<span>1d ago</span>
|
| 359 |
+
</div>
|
| 360 |
+
</div>
|
| 361 |
+
</div>
|
| 362 |
+
</div>
|
| 363 |
+
</div>
|
| 364 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 365 |
+
<div class="flex items-center justify-between mb-4">
|
| 366 |
+
<h3 class="text-lg font-medium text-gray-900">Quick Actions</h3>
|
| 367 |
+
</div>
|
| 368 |
+
<div class="grid grid-cols-2 gap-4">
|
| 369 |
+
<button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors duration-200">
|
| 370 |
+
<div class="p-3 mb-2 rounded-full bg-blue-100 text-blue-600">
|
| 371 |
+
<i class="fas fa-file-excel text-xl"></i>
|
| 372 |
+
</div>
|
| 373 |
+
<span class="text-sm font-medium text-gray-700">Analyze Data</span>
|
| 374 |
+
</button>
|
| 375 |
+
<button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors duration-200">
|
| 376 |
+
<div class="p-3 mb-2 rounded-full bg-green-100 text-green-600">
|
| 377 |
+
<i class="fas fa-file-contract text-xl"></i>
|
| 378 |
+
</div>
|
| 379 |
+
<span class="text-sm font-medium text-gray-700">Review Contract</span>
|
| 380 |
+
</button>
|
| 381 |
+
<button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors duration-200">
|
| 382 |
+
<div class="p-3 mb-2 rounded-full bg-purple-100 text-purple-600">
|
| 383 |
+
<i class="fas fa-file-invoice text-xl"></i>
|
| 384 |
+
</div>
|
| 385 |
+
<span class="text-sm font-medium text-gray-700">Generate Workpaper</span>
|
| 386 |
+
</button>
|
| 387 |
+
<button class="flex flex-col items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors duration-200">
|
| 388 |
+
<div class="p-3 mb-2 rounded-full bg-yellow-100 text-yellow-600">
|
| 389 |
+
<i class="fas fa-clipboard-check text-xl"></i>
|
| 390 |
+
</div>
|
| 391 |
+
<span class="text-sm font-medium text-gray-700">Check Standards</span>
|
| 392 |
+
</button>
|
| 393 |
+
</div>
|
| 394 |
+
</div>
|
| 395 |
+
</div>
|
| 396 |
+
|
| 397 |
+
<div class="bg-white rounded-lg shadow overflow-hidden">
|
| 398 |
+
<div class="px-6 py-4 border-b border-gray-200">
|
| 399 |
+
<h3 class="text-lg font-medium text-gray-900">Recent Audit Findings</h3>
|
| 400 |
+
</div>
|
| 401 |
+
<div class="overflow-x-auto">
|
| 402 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 403 |
+
<thead class="bg-gray-50">
|
| 404 |
+
<tr>
|
| 405 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Audit ID</th>
|
| 406 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
|
| 407 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
| 408 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Findings</th>
|
| 409 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
| 410 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
| 411 |
+
</tr>
|
| 412 |
+
</thead>
|
| 413 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 414 |
+
<tr>
|
| 415 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">AUD-2023-001</td>
|
| 416 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Financial</td>
|
| 417 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 418 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">In Progress</span>
|
| 419 |
+
</td>
|
| 420 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3 High, 5 Medium</td>
|
| 421 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15</td>
|
| 422 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 423 |
+
<a href="#" class="text-blue-600 hover:text-blue-900">View</a>
|
| 424 |
+
</td>
|
| 425 |
+
</tr>
|
| 426 |
+
<tr>
|
| 427 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">AUD-2023-002</td>
|
| 428 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">IT</td>
|
| 429 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 430 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
|
| 431 |
+
</td>
|
| 432 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 High, 3 Medium</td>
|
| 433 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-10</td>
|
| 434 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 435 |
+
<a href="#" class="text-blue-600 hover:text-blue-900">View</a>
|
| 436 |
+
</td>
|
| 437 |
+
</tr>
|
| 438 |
+
<tr>
|
| 439 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">AUD-2023-003</td>
|
| 440 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Operational</td>
|
| 441 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 442 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
|
| 443 |
+
</td>
|
| 444 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 High, 2 Medium</td>
|
| 445 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-05</td>
|
| 446 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 447 |
+
<a href="#" class="text-blue-600 hover:text-blue-900">View</a>
|
| 448 |
+
</td>
|
| 449 |
+
</tr>
|
| 450 |
+
</tbody>
|
| 451 |
+
</table>
|
| 452 |
+
</div>
|
| 453 |
+
</div>
|
| 454 |
+
</div>
|
| 455 |
+
|
| 456 |
+
<!-- Contract Analysis Tab -->
|
| 457 |
+
<div class="tab-content p-6" id="contract-analysis">
|
| 458 |
+
<div class="mb-6">
|
| 459 |
+
<h2 class="text-2xl font-bold text-gray-800">Contract Analysis</h2>
|
| 460 |
+
<p class="text-gray-600">Upload contracts for automatic summarization and analysis.</p>
|
| 461 |
+
</div>
|
| 462 |
+
|
| 463 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 464 |
+
<div class="lg:col-span-2">
|
| 465 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 466 |
+
<div class="mb-6">
|
| 467 |
+
<h3 class="text-lg font-medium text-gray-900">Upload Document</h3>
|
| 468 |
+
<p class="text-sm text-gray-500 mt-1">Supported formats: PDF, Word, Excel</p>
|
| 469 |
+
</div>
|
| 470 |
+
|
| 471 |
+
<div id="dropzone" class="dropzone rounded-lg p-8 text-center cursor-pointer">
|
| 472 |
+
<div class="flex flex-col items-center justify-center">
|
| 473 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-3"></i>
|
| 474 |
+
<p class="text-sm text-gray-600 mb-1">Drag and drop your document here</p>
|
| 475 |
+
<p class="text-xs text-gray-500 mb-4">or</p>
|
| 476 |
+
<label for="file-upload" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 cursor-pointer transition-colors duration-200">
|
| 477 |
+
Browse Files
|
| 478 |
+
</label>
|
| 479 |
+
<input id="file-upload" type="file" class="hidden" accept=".pdf,.doc,.docx,.xls,.xlsx">
|
| 480 |
+
</div>
|
| 481 |
+
</div>
|
| 482 |
+
|
| 483 |
+
<div id="upload-progress" class="mt-6 hidden">
|
| 484 |
+
<div class="flex justify-between mb-1">
|
| 485 |
+
<span class="text-sm font-medium text-gray-700">Uploading...</span>
|
| 486 |
+
<span class="text-sm font-medium text-gray-700" id="progress-percentage">0%</span>
|
| 487 |
+
</div>
|
| 488 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 489 |
+
<div id="progress-bar" class="progress-bar bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
|
| 490 |
+
</div>
|
| 491 |
+
</div>
|
| 492 |
+
|
| 493 |
+
<div id="file-info" class="mt-6 hidden">
|
| 494 |
+
<div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
|
| 495 |
+
<div class="flex items-center">
|
| 496 |
+
<i class="fas fa-file-alt text-gray-500 mr-3"></i>
|
| 497 |
+
<div>
|
| 498 |
+
<p class="text-sm font-medium text-gray-900" id="file-name"></p>
|
| 499 |
+
<p class="text-xs text-gray-500" id="file-size"></p>
|
| 500 |
+
</div>
|
| 501 |
+
</div>
|
| 502 |
+
<button id="remove-file" class="text-red-500 hover:text-red-700">
|
| 503 |
+
<i class="fas fa-times"></i>
|
| 504 |
+
</button>
|
| 505 |
+
</div>
|
| 506 |
+
</div>
|
| 507 |
+
|
| 508 |
+
<div class="mt-6">
|
| 509 |
+
<button id="analyze-btn" class="w-full bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
|
| 510 |
+
Analyze Document
|
| 511 |
+
</button>
|
| 512 |
+
</div>
|
| 513 |
+
</div>
|
| 514 |
+
</div>
|
| 515 |
+
|
| 516 |
+
<div>
|
| 517 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 518 |
+
<div class="mb-6">
|
| 519 |
+
<h3 class="text-lg font-medium text-gray-900">Document Summary</h3>
|
| 520 |
+
<p class="text-sm text-gray-500 mt-1">Key details extracted from your document</p>
|
| 521 |
+
</div>
|
| 522 |
+
|
| 523 |
+
<div id="summary-placeholder" class="text-center py-8">
|
| 524 |
+
<i class="fas fa-file-alt text-4xl text-gray-300 mb-3"></i>
|
| 525 |
+
<p class="text-gray-500">Upload a document to see the summary</p>
|
| 526 |
+
</div>
|
| 527 |
+
|
| 528 |
+
<div id="document-summary" class="hidden">
|
| 529 |
+
<div class="space-y-4">
|
| 530 |
+
<div>
|
| 531 |
+
<h4 class="text-sm font-medium text-gray-700">Document Type</h4>
|
| 532 |
+
<p class="text-sm text-gray-900" id="summary-type">Contract Agreement</p>
|
| 533 |
+
</div>
|
| 534 |
+
<div>
|
| 535 |
+
<h4 class="text-sm font-medium text-gray-700">Parties</h4>
|
| 536 |
+
<p class="text-sm text-gray-900" id="summary-parties">ABC Corporation and XYZ Ltd.</p>
|
| 537 |
+
</div>
|
| 538 |
+
<div>
|
| 539 |
+
<h4 class="text-sm font-medium text-gray-700">Effective Date</h4>
|
| 540 |
+
<p class="text-sm text-gray-900" id="summary-date">June 1, 2023</p>
|
| 541 |
+
</div>
|
| 542 |
+
<div>
|
| 543 |
+
<h4 class="text-sm font-medium text-gray-700">Term</h4>
|
| 544 |
+
<p class="text-sm text-gray-900" id="summary-term">2 years</p>
|
| 545 |
+
</div>
|
| 546 |
+
<div>
|
| 547 |
+
<h4 class="text-sm font-medium text-gray-700">Key Clauses</h4>
|
| 548 |
+
<ul class="list-disc list-inside text-sm text-gray-900 space-y-1 mt-1" id="summary-clauses">
|
| 549 |
+
<li>Payment terms: Net 30 days</li>
|
| 550 |
+
<li>Termination notice: 60 days</li>
|
| 551 |
+
<li>Liability cap: $100,000</li>
|
| 552 |
+
</ul>
|
| 553 |
+
</div>
|
| 554 |
+
<div>
|
| 555 |
+
<h4 class="text-sm font-medium text-gray-700">Risk Assessment</h4>
|
| 556 |
+
<div class="mt-1">
|
| 557 |
+
<span class="px-2 py-1 text-xs font-medium rounded-full bg-yellow-100 text-yellow-800">Medium Risk</span>
|
| 558 |
+
<p class="text-xs text-gray-500 mt-1">2 potential risk areas identified</p>
|
| 559 |
+
</div>
|
| 560 |
+
</div>
|
| 561 |
+
</div>
|
| 562 |
+
|
| 563 |
+
<div class="mt-6">
|
| 564 |
+
<button class="w-full bg-white border border-gray-300 text-gray-700 py-2 px-4 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
|
| 565 |
+
<i class="fas fa-download mr-2"></i> Download Summary
|
| 566 |
+
</button>
|
| 567 |
+
</div>
|
| 568 |
+
</div>
|
| 569 |
+
</div>
|
| 570 |
+
</div>
|
| 571 |
+
</div>
|
| 572 |
+
|
| 573 |
+
<div class="mt-6 bg-white rounded-lg shadow overflow-hidden">
|
| 574 |
+
<div class="px-6 py-4 border-b border-gray-200">
|
| 575 |
+
<h3 class="text-lg font-medium text-gray-900">Recent Document Analyses</h3>
|
| 576 |
+
</div>
|
| 577 |
+
<div class="overflow-x-auto">
|
| 578 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 579 |
+
<thead class="bg-gray-50">
|
| 580 |
+
<tr>
|
| 581 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Document</th>
|
| 582 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
|
| 583 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
| 584 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Risk Level</th>
|
| 585 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
| 586 |
+
</tr>
|
| 587 |
+
</thead>
|
| 588 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 589 |
+
<tr>
|
| 590 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Service Agreement.pdf</td>
|
| 591 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Contract</td>
|
| 592 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15</td>
|
| 593 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 594 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Medium</span>
|
| 595 |
+
</td>
|
| 596 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 597 |
+
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3">View</a>
|
| 598 |
+
<a href="#" class="text-blue-600 hover:text-blue-900">Download</a>
|
| 599 |
+
</td>
|
| 600 |
+
</tr>
|
| 601 |
+
<tr>
|
| 602 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">NDA_Agreement.docx</td>
|
| 603 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">NDA</td>
|
| 604 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-10</td>
|
| 605 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 606 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Low</span>
|
| 607 |
+
</td>
|
| 608 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 609 |
+
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3">View</a>
|
| 610 |
+
<a href="#" class="text-blue-600 hover:text-blue-900">Download</a>
|
| 611 |
+
</td>
|
| 612 |
+
</tr>
|
| 613 |
+
<tr>
|
| 614 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Vendor_Contract.pdf</td>
|
| 615 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Contract</td>
|
| 616 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-05</td>
|
| 617 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 618 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">High</span>
|
| 619 |
+
</td>
|
| 620 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 621 |
+
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3">View</a>
|
| 622 |
+
<a href="#" class="text-blue-600 hover:text-blue-900">Download</a>
|
| 623 |
+
</td>
|
| 624 |
+
</tr>
|
| 625 |
+
</tbody>
|
| 626 |
+
</table>
|
| 627 |
+
</div>
|
| 628 |
+
</div>
|
| 629 |
+
</div>
|
| 630 |
+
</div>
|
| 631 |
+
</div>
|
| 632 |
+
</div>
|
| 633 |
+
|
| 634 |
+
<script>
|
| 635 |
+
// Authentication logic
|
| 636 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 637 |
+
// Show auth modal by default
|
| 638 |
+
document.getElementById('auth-modal').classList.add('active');
|
| 639 |
+
|
| 640 |
+
// Toggle between sign in and sign up forms
|
| 641 |
+
document.getElementById('show-signup').addEventListener('click', function() {
|
| 642 |
+
document.getElementById('signin-form').classList.add('hidden');
|
| 643 |
+
document.getElementById('signup-form').classList.remove('hidden');
|
| 644 |
+
document.getElementById('auth-modal-title').textContent = 'Sign Up';
|
| 645 |
+
});
|
| 646 |
+
|
| 647 |
+
document.getElementById('show-signin').addEventListener('click', function() {
|
| 648 |
+
document.getElementById('signup-form').classList.add('hidden');
|
| 649 |
+
document.getElementById('signin-form').classList.remove('hidden');
|
| 650 |
+
document.getElementById('auth-modal-title').textContent = 'Sign In';
|
| 651 |
+
});
|
| 652 |
+
|
| 653 |
+
// Close auth modal
|
| 654 |
+
document.getElementById('close-auth-modal').addEventListener('click', function() {
|
| 655 |
+
document.getElementById('auth-modal').classList.remove('active');
|
| 656 |
+
});
|
| 657 |
+
|
| 658 |
+
// Sign in button
|
| 659 |
+
document.getElementById('signin-btn').addEventListener('click', function() {
|
| 660 |
+
const email = document.getElementById('email').value;
|
| 661 |
+
const password = document.getElementById('password').value;
|
| 662 |
+
|
| 663 |
+
if (email && password) {
|
| 664 |
+
// In a real app, you would validate credentials with a backend
|
| 665 |
+
localStorage.setItem('authenticated', 'true');
|
| 666 |
+
localStorage.setItem('userName', email.split('@')[0]);
|
| 667 |
+
|
| 668 |
+
document.getElementById('auth-modal').classList.remove('active');
|
| 669 |
+
document.getElementById('app-container').style.display = 'flex';
|
| 670 |
+
document.getElementById('user-name').textContent = email.split('@')[0];
|
| 671 |
+
} else {
|
| 672 |
+
alert('Please enter both email and password');
|
| 673 |
+
}
|
| 674 |
+
});
|
| 675 |
+
|
| 676 |
+
// Sign up button
|
| 677 |
+
document.getElementById('signup-btn').addEventListener('click', function() {
|
| 678 |
+
const name = document.getElementById('signup-name').value;
|
| 679 |
+
const email = document.getElementById('signup-email').value;
|
| 680 |
+
const password = document.getElementById('signup-password').value;
|
| 681 |
+
const confirmPassword = document.getElementById('signup-confirm-password').value;
|
| 682 |
+
|
| 683 |
+
if (!name || !email || !password || !confirmPassword) {
|
| 684 |
+
alert('Please fill in all fields');
|
| 685 |
+
return;
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
if (password !== confirmPassword) {
|
| 689 |
+
alert('Passwords do not match');
|
| 690 |
+
return;
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
// In a real app, you would send this data to a backend
|
| 694 |
+
localStorage.setItem('authenticated', 'true');
|
| 695 |
+
localStorage.setItem('userName', name);
|
| 696 |
+
|
| 697 |
+
document.getElementById('auth-modal').classList.remove('active');
|
| 698 |
+
document.getElementById('app-container').style.display = 'flex';
|
| 699 |
+
document.getElementById('user-name').textContent = name;
|
| 700 |
+
|
| 701 |
+
// Switch back to sign in form for next time
|
| 702 |
+
document.getElementById('signup-form').classList.add('hidden');
|
| 703 |
+
document.getElementById('signin-form').classList.remove('hidden');
|
| 704 |
+
document.getElementById('auth-modal-title').textContent = 'Sign In';
|
| 705 |
+
});
|
| 706 |
+
|
| 707 |
+
// Sign out buttons
|
| 708 |
+
document.getElementById('signout-btn').addEventListener('click', signOut);
|
| 709 |
+
document.getElementById('mobile-signout-btn').addEventListener('click', signOut);
|
| 710 |
+
|
| 711 |
+
function signOut() {
|
| 712 |
+
localStorage.removeItem('authenticated');
|
| 713 |
+
localStorage.removeItem('userName');
|
| 714 |
+
document.getElementById('app-container').style.display = 'none';
|
| 715 |
+
document.getElementById('auth-modal').classList.add('active');
|
| 716 |
+
|
| 717 |
+
// Reset forms
|
| 718 |
+
document.getElementById('email').value = '';
|
| 719 |
+
document.getElementById('password').value = '';
|
| 720 |
+
document.getElementById('signup-name').value = '';
|
| 721 |
+
document.getElementById('signup-email').value = '';
|
| 722 |
+
document.getElementById('signup-password').value = '';
|
| 723 |
+
document.getElementById('signup-confirm-password').value = '';
|
| 724 |
+
}
|
| 725 |
+
|
| 726 |
+
// Check if already authenticated
|
| 727 |
+
if (localStorage.getItem('authenticated') === 'true') {
|
| 728 |
+
document.getElementById('auth-modal').classList.remove('active');
|
| 729 |
+
document.getElementById('app-container').style.display = 'flex';
|
| 730 |
+
|
| 731 |
+
const userName = localStorage.getItem('userName') || 'Auditor';
|
| 732 |
+
document.getElementById('user-name').textContent = userName;
|
| 733 |
+
}
|
| 734 |
+
|
| 735 |
+
// Tab switching
|
| 736 |
+
const sidebarItems = document.querySelectorAll('.sidebar-item');
|
| 737 |
+
sidebarItems.forEach(item => {
|
| 738 |
+
item.addEventListener('click', function() {
|
| 739 |
+
sidebarItems.forEach(i => i.classList.remove('active'));
|
| 740 |
+
this.classList.add('active');
|
| 741 |
+
|
| 742 |
+
const tabId = this.textContent.trim().toLowerCase().replace(' ', '-');
|
| 743 |
+
const tabContents = document.querySelectorAll('.tab-content');
|
| 744 |
+
tabContents.forEach(content => content.classList.remove('active'));
|
| 745 |
+
|
| 746 |
+
document.getElementById(tabId).classList.add('active');
|
| 747 |
+
});
|
| 748 |
+
});
|
| 749 |
+
|
| 750 |
+
// Mobile sidebar toggle
|
| 751 |
+
document.getElementById('mobile-sidebar-toggle').addEventListener('click', function() {
|
| 752 |
+
document.getElementById('mobile-sidebar').classList.toggle('hidden');
|
| 753 |
+
});
|
| 754 |
+
|
| 755 |
+
// Document upload and analysis
|
| 756 |
+
const dropzone = document.getElementById('dropzone');
|
| 757 |
+
const fileInput = document.getElementById('file-upload');
|
| 758 |
+
const analyzeBtn = document.getElementById('analyze-btn');
|
| 759 |
+
const fileInfo = document.getElementById('file-info');
|
| 760 |
+
const fileName = document.getElementById('file-name');
|
| 761 |
+
const fileSize = document.getElementById('file-size');
|
| 762 |
+
const removeFileBtn = document.getElementById('remove-file');
|
| 763 |
+
const uploadProgress = document.getElementById('upload-progress');
|
| 764 |
+
const progressBar = document.getElementById('progress-bar');
|
| 765 |
+
const progressPercentage = document.getElementById('progress-percentage');
|
| 766 |
+
const summaryPlaceholder = document.getElementById('summary-placeholder');
|
| 767 |
+
const documentSummary = document.getElementById('document-summary');
|
| 768 |
+
|
| 769 |
+
// Drag and drop events
|
| 770 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
| 771 |
+
dropzone.addEventListener(eventName, preventDefaults, false);
|
| 772 |
+
});
|
| 773 |
+
|
| 774 |
+
function preventDefaults(e) {
|
| 775 |
+
e.preventDefault();
|
| 776 |
+
e.stopPropagation();
|
| 777 |
+
}
|
| 778 |
+
|
| 779 |
+
['dragenter', 'dragover'].forEach(eventName => {
|
| 780 |
+
dropzone.addEventListener(eventName, highlight, false);
|
| 781 |
+
});
|
| 782 |
+
|
| 783 |
+
['dragleave', 'drop'].forEach(eventName => {
|
| 784 |
+
dropzone.addEventListener(eventName, unhighlight, false);
|
| 785 |
+
});
|
| 786 |
+
|
| 787 |
+
function highlight() {
|
| 788 |
+
dropzone.classList.add('active');
|
| 789 |
+
}
|
| 790 |
+
|
| 791 |
+
function unhighlight() {
|
| 792 |
+
dropzone.classList.remove('active');
|
| 793 |
+
}
|
| 794 |
+
|
| 795 |
+
dropzone.addEventListener('drop', handleDrop, false);
|
| 796 |
+
|
| 797 |
+
function handleDrop(e) {
|
| 798 |
+
const dt = e.dataTransfer;
|
| 799 |
+
const files = dt.files;
|
| 800 |
+
handleFiles(files);
|
| 801 |
+
}
|
| 802 |
+
|
| 803 |
+
fileInput.addEventListener('change', function() {
|
| 804 |
+
handleFiles(this.files);
|
| 805 |
+
});
|
| 806 |
+
|
| 807 |
+
function handleFiles(files) {
|
| 808 |
+
if (files.length > 0) {
|
| 809 |
+
const file = files[0];
|
| 810 |
+
displayFileInfo(file);
|
| 811 |
+
simulateUpload(file);
|
| 812 |
+
}
|
| 813 |
+
}
|
| 814 |
+
|
| 815 |
+
function displayFileInfo(file) {
|
| 816 |
+
fileName.textContent = file.name;
|
| 817 |
+
fileSize.textContent = formatFileSize(file.size);
|
| 818 |
+
fileInfo.classList.remove('hidden');
|
| 819 |
+
analyzeBtn.disabled = false;
|
| 820 |
+
}
|
| 821 |
+
|
| 822 |
+
function formatFileSize(bytes) {
|
| 823 |
+
if (bytes === 0) return '0 Bytes';
|
| 824 |
+
|
| 825 |
+
const k = 1024;
|
| 826 |
+
const sizes = ['Bytes', 'KB', 'MB', 'GB'];
|
| 827 |
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
| 828 |
+
|
| 829 |
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
|
| 830 |
+
}
|
| 831 |
+
|
| 832 |
+
function simulateUpload(file) {
|
| 833 |
+
uploadProgress.classList.remove('hidden');
|
| 834 |
+
|
| 835 |
+
let progress = 0;
|
| 836 |
+
const interval = setInterval(() => {
|
| 837 |
+
progress += Math.random() * 10;
|
| 838 |
+
if (progress > 100) progress = 100;
|
| 839 |
+
|
| 840 |
+
progressBar.style.width = `${progress}%`;
|
| 841 |
+
progressPercentage.textContent = `${Math.round(progress)}%`;
|
| 842 |
+
|
| 843 |
+
if (progress === 100) {
|
| 844 |
+
clearInterval(interval);
|
| 845 |
+
setTimeout(() => {
|
| 846 |
+
uploadProgress.classList.add('hidden');
|
| 847 |
+
}, 500);
|
| 848 |
+
}
|
| 849 |
+
}, 200);
|
| 850 |
+
}
|
| 851 |
+
|
| 852 |
+
removeFileBtn.addEventListener('click', function() {
|
| 853 |
+
fileInput.value = '';
|
| 854 |
+
fileInfo.classList.add('hidden');
|
| 855 |
+
uploadProgress.classList.add('hidden');
|
| 856 |
+
analyzeBtn.disabled = true;
|
| 857 |
+
documentSummary.classList.add('hidden');
|
| 858 |
+
summaryPlaceholder.classList.remove('hidden');
|
| 859 |
+
});
|
| 860 |
+
|
| 861 |
+
analyzeBtn.addEventListener('click', function() {
|
| 862 |
+
// Simulate analysis
|
| 863 |
+
analyzeBtn.disabled = true;
|
| 864 |
+
analyzeBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Analyzing...';
|
| 865 |
+
|
| 866 |
+
setTimeout(() => {
|
| 867 |
+
analyzeBtn.disabled = false;
|
| 868 |
+
analyzeBtn.textContent = 'Analyze Document';
|
| 869 |
+
|
| 870 |
+
summaryPlaceholder.classList.add('hidden');
|
| 871 |
+
documentSummary.classList.remove('hidden');
|
| 872 |
+
|
| 873 |
+
// In a real app, you would populate these with actual data from the analysis
|
| 874 |
+
document.getElementById('summary-type').textContent = 'Contract Agreement';
|
| 875 |
+
document.getElementById('summary-parties').textContent = 'ABC Corporation and XYZ Ltd.';
|
| 876 |
+
document.getElementById('summary-date').textContent = 'June 1, 2023';
|
| 877 |
+
document.getElementById('summary-term').textContent = '2 years';
|
| 878 |
+
|
| 879 |
+
const clausesList = document.getElementById('summary-clauses');
|
| 880 |
+
clausesList.innerHTML = '';
|
| 881 |
+
const clauses = [
|
| 882 |
+
'Payment terms: Net 30 days',
|
| 883 |
+
'Termination notice: 60 days',
|
| 884 |
+
'Liability cap: $100,000',
|
| 885 |
+
'Confidentiality: Standard NDA terms apply',
|
| 886 |
+
'Governing law: State of Delaware'
|
| 887 |
+
];
|
| 888 |
+
|
| 889 |
+
clauses.forEach(clause => {
|
| 890 |
+
const li = document.createElement('li');
|
| 891 |
+
li.textContent = clause;
|
| 892 |
+
clausesList.appendChild(li);
|
| 893 |
+
});
|
| 894 |
+
}, 2000);
|
| 895 |
+
});
|
| 896 |
+
});
|
| 897 |
+
</script>
|
| 898 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=samehelmalt/auditai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 899 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Develop a comprehensive and professional codebase for a desktop/mobile application tailored to the needs of an internal audit team at a mobile operator company. The application should leverage AI to enhance efficiency and accuracy in auditing processes. Below are the detailed requirements: Core Features: Data Analysis for Excel Sheets: Enable the application to handle large Excel files efficiently. Provide tools for analyzing data, identifying trends, and summarizing key insights. Contract Summarization: Automatically extract and summarize critical details from contracts, including: Contract date Signed parties Penalties Payment terms Scope of work Support both readable PDFs , non-readable (scanned) PDFs , Word documents, and Excel sheets. Use Optical Character Recognition (OCR) for non-selectable/scanned PDFs to extract text accurately. Contract Query Engine: Allow users to ask questions about contracts, such as: Is the contract expired? What are the weaknesses or risks in the contract? Are there any missing clauses or ambiguities? Provide clear, concise answers based on the extracted data. Workpaper Generation: Create structured workpapers in Excel format based on a customizable template. Allow internal auditors to upload their own templates (Excel-based) and use them for generating workpapers. Automate testing of contracts against predefined criteria and populate the workpaper with results, including findings, observations, and recommendations. Document Chat Interface: Include a dedicated tab for interacting with documents (readable PDFs, non-readable PDFs, Word files, and Excel sheets). Implement a chat-like interface where users can ask questions about the document content. Ensure high accuracy and performance using free/open-source models for natural language processing (NLP) and OCR. Free/Open-Source Models: Utilize free and open-source libraries and models for all AI functionalities (e.g., OCR, NLP, summarization, question-answering). Examples include Tesseract OCR, PyPDF2, Transformers (Hugging Face), LangChain, spaCy, etc. User-Friendly Interface: Design an intuitive and responsive UI/UX that caters to both technical and non-technical users. Ensure seamless navigation between different tabs (e.g., data analysis, contract summarization, document chat). Performance Optimization: Optimize the application to handle large datasets and complex documents without significant delays. Implement caching mechanisms and parallel processing where applicable. Export Options: Allow users to export summarized data, workpapers, and chat logs in multiple formats (Excel, PDF, CSV). Security and Privacy: Ensure all data is processed locally or securely within the organization’s infrastructure to comply with international data protection standards. Avoid sending sensitive data to external APIs or cloud services. Deliverables: A fully functional Python-based application with a graphical user interface (GUI). Documentation explaining the setup, usage, and customization options. Instructions for integrating new templates or updating AI models. A list of all free/open-source libraries and tools used in the project. Example Workflow: User uploads a contract (PDF, Word, or Excel). The application extracts relevant information using OCR (if needed) and NLP. User views a summary of the contract, including key details like date, parties, penalties, etc. User interacts with the document via the chat interface to ask specific questions. The application generates a workpaper in Excel format based on the auditor’s custom template. User reviews and exports the workpaper along with other outputs. Ensure the application is scalable, reliable, and easy to maintain, keeping in mind its deployment in an international corporate environment. please add another tab that related to checking internal audit standard such as, 1- IT Internal audit standard ( COSO, Oracle database guidelines and baslines, ...etc), 2- Financial internal audit standard 3- Company processes. this should be through vectordatabase that include all such standards using strong model and using advanced RAG solution, also allow to the user to add standards and update them through seperate windows. the used models in retrieval and generation has high accureccy and top performance , this will be used in business"
|
| 2 |
+
well, please add an authontification window for user signin and out, also please add a part for docuemnts upload for summariztion
|