Spaces:
Sleeping
Sleeping
Refactor: Production-grade modular layout, NLTK permissions fix, and editorial audit dashboard overhaul
405a3f0 Download templates/index.html from amadmateen/SentinelReview-AI: direct link, hf CLI and curl.
- Browser
- Download file 9.43 kB
-
https://huggingface.co/spaces/amadmateen/SentinelReview-AI/resolve/main/templates/index.html
- Command line
-
hf download hf://spaces/amadmateen/SentinelReview-AI/templates/index.html
-
curl -L -o index.html https://huggingface.co/spaces/amadmateen/SentinelReview-AI/resolve/main/templates/index.html
9.43 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>SentinelReview AI / Multimodal Review Integrity System</title> | |
| <!-- Meta tags for portfolio SEO --> | |
| <meta name="description" content="Premium investigative AI system auditing review authenticity using DistilBERT semantic vectors and NLTK VADER sentiment profiling."> | |
| <meta name="keywords" content="Review Fraud, NLP, DistilBERT, PyTorch, AI Verdict"> | |
| <!-- Typography: Bebas Neue for confident display typography and Inter for precise metadata readouts --> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet"> | |
| <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> | |
| <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | |
| </head> | |
| <body> | |
| <div class="investigation-layout"> | |
| <!-- Main Bold Headline Banner --> | |
| <header class="editorial-header"> | |
| <div class="header-ticker"> | |
| <span class="ticker-item">SYSTEM ID: SENTINEL.ML.AUDIT</span> | |
| <span class="ticker-separator">//</span> | |
| <span class="ticker-item">VERSION 1.0.0</span> | |
| <span class="ticker-separator">//</span> | |
| <span class="ticker-item">STABLE</span> | |
| </div> | |
| <h1 class="editorial-title">SENTINELREVIEW AI</h1> | |
| <p class="editorial-subtitle">MULTIMODAL REVIEW INTEGRITY AUDITING PLATFORM</p> | |
| </header> | |
| {% if not models_status %} | |
| <div class="editorial-alert"> | |
| <div class="alert-icon">!</div> | |
| <div class="alert-text"> | |
| <strong>HARDWARE FAULT:</strong> DistilBERT or sentiment lexicon failed to initialize. Review auditing is currently suspended. | |
| </div> | |
| </div> | |
| {% endif %} | |
| <!-- Asymmetrical Multi-Column Layout --> | |
| <div class="editorial-grid"> | |
| <!-- Left Side: Evidence Submission Form --> | |
| <section class="editorial-panel submission-panel"> | |
| <div class="graphic-tab"> | |
| <span class="tab-label">EVIDENCE INPUT</span> | |
| <span class="tab-index">01</span> | |
| </div> | |
| <form id="review-form" enctype="multipart/form-data"> | |
| <div class="input-block"> | |
| <label for="review-text" class="editorial-label">TEXT SAMPLE (EVIDENCE VECTORS)</label> | |
| <div class="text-input-wrapper"> | |
| <textarea id="review-text" name="review_text" rows="8" placeholder="Enter review transcript for text vector extraction..." maxlength="1000"></textarea> | |
| </div> | |
| </div> | |
| <div class="input-block"> | |
| <label class="editorial-label">PRODUCT IMAGE (CONTEXTUAL EVIDENCE - OPTIONAL)</label> | |
| <div class="drag-upload-container" id="drop-zone"> | |
| <input type="file" id="review-image" name="review_image" accept="image/*" class="file-input-hidden"> | |
| <div class="upload-inner" id="upload-prompt"> | |
| <span class="upload-icon">⎗</span> | |
| <p class="prompt-text">ATTACH PRODUCT IMAGE OR <span>SELECT FILE</span></p> | |
| <span class="size-limit">LIMIT: 16MB</span> | |
| </div> | |
| <div class="upload-preview" id="preview-wrapper" style="display: none;"> | |
| <img id="image-preview" src="" alt="Upload Preview"> | |
| <button type="button" class="btn-remove-evidence" id="remove-img-btn">✕ FLUSH IMAGE</button> | |
| </div> | |
| </div> | |
| </div> | |
| <button type="submit" id="analyze-btn" class="btn-submit" {% if not models_status %}disabled{% endif %}> | |
| <span>SUBMIT EVIDENCE</span> | |
| <span class="btn-arrow">→</span> | |
| </button> | |
| </form> | |
| </section> | |
| <!-- Right Side: Verdict Output & Explanation Cards --> | |
| <section class="editorial-panel analysis-panel"> | |
| <div class="graphic-tab tab-accent"> | |
| <span class="tab-label">INVESTIGATION METRICS</span> | |
| <span class="tab-index">02</span> | |
| </div> | |
| <!-- Empty/Standby State --> | |
| <div id="results-empty" class="editorial-empty-state"> | |
| <div class="empty-doodle">⌖</div> | |
| <h3>SYSTEM IDLE</h3> | |
| <p>Awaiting text vectors. Submit evidence in the left panel to execute the multimodal authenticity verification sequence.</p> | |
| </div> | |
| <!-- Subtle Loader --> | |
| <div id="loader" class="editorial-loader" style="display: none;"> | |
| <div class="loader-line"></div> | |
| <div class="pulse-indicator"></div> | |
| <h3>PROCESSING VECTORS...</h3> | |
| <p>Evaluating DistilBERT representations and mapping sentiment compound scales.</p> | |
| </div> | |
| <!-- Active Report Results --> | |
| <div id="result-container" class="editorial-report-wrapper" style="display: none;"> | |
| <!-- Verdict & Certainty Card --> | |
| <div class="verdict-bar"> | |
| <div class="verdict-block"> | |
| <span class="mini-label">AI VERDICT</span> | |
| <div class="verdict-badge" id="classification-badge"> | |
| <span id="classification-text">VERIFIED</span> | |
| </div> | |
| </div> | |
| <div class="certainty-block"> | |
| <span class="mini-label">CERTAINTY RATING</span> | |
| <div class="certainty-indicator" id="confidence-value">0%</div> | |
| </div> | |
| </div> | |
| <!-- Asymmetrical Profile Stats --> | |
| <div class="metadata-profile"> | |
| <div class="profile-header"> | |
| <h3>MULTIMODAL EVIDENCE VECTORS</h3> | |
| </div> | |
| <div class="profile-grid"> | |
| <div class="profile-cell"> | |
| <span class="cell-title">VADER SENTIMENT</span> | |
| <div class="cell-val" id="metric-sentiment">0.0</div> | |
| </div> | |
| <div class="profile-cell"> | |
| <span class="cell-title">CHAR LENGTH</span> | |
| <div class="cell-val" id="metric-length">0</div> | |
| </div> | |
| <div class="profile-cell"> | |
| <span class="cell-title">CAPS RATIO</span> | |
| <div class="cell-val" id="metric-capital">0%</div> | |
| </div> | |
| <div class="profile-cell"> | |
| <span class="cell-title">PUNCTUATION</span> | |
| <div class="cell-val" id="metric-punctuation">0</div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Image Attachment display --> | |
| <div class="evidence-image-block" id="uploaded-image-container" style="display: none;"> | |
| <span class="mini-label">CONTEXT EVIDENCE TRANSCRIPT</span> | |
| <div class="evidence-image-frame"> | |
| <img id="result-image" src="" alt="Context Evidence"> | |
| </div> | |
| </div> | |
| <!-- Investigation Semantic log --> | |
| <div class="evidence-log-card"> | |
| <div class="log-header"> | |
| <h3>SEMANTIC EVIDENCE LOG</h3> | |
| <button class="btn-copy-log" id="btn-copy-explanation" title="Copy report text"> | |
| <span class="copy-label">COPY LOG</span> | |
| <span class="copy-arrow">↗</span> | |
| </button> | |
| </div> | |
| <div id="explanation-text" class="log-body-box"></div> | |
| </div> | |
| </div> | |
| </section> | |
| </div> | |
| <footer class="editorial-footer"> | |
| <p>SENTINELREVIEW AI / DISTILBERT LANGUAGE ENCODER / NLTK VADER METRICS / RESNET SKELETAL PROJECTIONS</p> | |
| <p>IMPLEMETATION BY AMAD MATEEN // ALL SYSTEM LOGS VERIFIED</p> | |
| </footer> | |
| </div> | |
| <script src="{{ url_for('static', filename='js/script.js') }}"></script> | |
| </body> | |
| </html> | |