File size: 14,219 Bytes
5bc067b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>OCR</title>
<link rel="icon" href="https://cdn-icons-png.flaticon.com/512/5262/5262072.png">
<link rel="stylesheet" href="../static/css/style2.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="../static/css/vendor.bundle.base.css">
<link rel="stylesheet" href="../static/css/OverlayScrollbars.min.css">
</head>
<body style="background-color: #1F2020">
<header>
<nav class="navbar navbar-expand-lg bg-ocr mb-5">
<div class="container h-100">
<!-- Logo START -->
<a class="navbar-brand" href="pdf">
<img class="navbar-brand-item" src="../static/icons/avignon_universite_blanc_RVB.png" alt="logo">
</a>
<!-- Logo END -->
<!-- Responsive navbar toggler -->
<button class="navbar-toggler ms-auto icon-md btn btn-light p-0 collapsed" type="button"
data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-animation">
<span></span>
<span></span>
<span></span>
</span>
</button>
<!-- Main navbar START -->
<div class="navbar-collapse collapse" id="navbarCollapse">
<ul class="navbar-nav navbar-nav-scroll ms-auto p-xl-0">
<!-- Nav item 1 Demos -->
<li class="nav-item nav-pills nav-pills-ocr">
<a class="nav-item nav-link" href="pdf">PDF Classifier</a>
</li>
<!-- Nav item 2 Pages -->
<li class="nav-item nav-pills nav-pills-ocr">
<a class="nav-item nav-link active" href="sentence">Text Classifier</a>
</li>
</ul>
</div>
<!-- Main navbar END -->
</div>
</nav>
</header>
<main class="pt-3 pt-md-5 pb-md-5 pt-lg-0 mt-3 ">
<!-- Container START -->
<div class="container mt-lg-7 ">
<div class="justify-content-lg-around justify-content-xl-center justify-content-md-between">
<!-- Chat conversation START -->
<div class="card card-chat bg-ocr" >
<div class="card-body h-100 bg-ocr rounded-2">
<div class="tab-content py-0 mb-0 h-100" id="chatTabsContent">
<!-- Conversation item START -->
<div class="fade tab-pane show active h-100" id="chat-1" role="tabpanel"
aria-labelledby="chat-1-tab">
<!-- Chat conversation START -->
<div
class="chat-conversation-content custom-scrollbar os-host os-theme-dark os-host-overflow os-host-overflow-y os-host-resize-disabled os-host-scrollbar-horizontal-hidden os-host-transition h-100">
<div class="os-padding">
<div class="os-viewport os-viewport-native-scrollbars-invisible"
style="overflow-y: scroll;">
<div class="os-content" style="padding: 0px; height: 100%; width: 100%;">
<!-- Chat message right -->
<div class="d-inline mb-1 align-content-between position-relative top-30" id = "presentation">
<div class="flex-grow-1 row">
<div class="w-100 col-1 text-center">
<div class="d-flex flex-column">
<div class="text-secondary p-2 px-3 rounded-2">
<div class="card"
style="background-color: #303131;">
<div
class="card-body">
<div
class="">
<div
class="flex-shrink-0 avatar avatar-lg mb-lg-3 ">
<img class="avatar-img rounded-circle"
src="../static/icons/logo_header_128x128.png"
alt="">
</div>
<h4 class="text-white">How can I help
you today ?</h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row d-flex justify-content-center">
<div class="col-lg-6 ">
<div class="flex-grow-1">
<div class="w-100">
<div class="d-flex flex-column align-items-start">
<div class="text-secondary p-2 px-3 rounded-2 w-100">
<div class="card"
style="background-color: #303131; border: 2px dashed rgb(82, 82, 82);">
<div class="card-body">
<h5 class="card-title text-white">
Text Classifier</h5>
<div class="mb-lg-0 text-white-50">
Enter a sentence or paragraph in the text box below to discover its category.
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 ">
<div class="flex-grow-1">
<div class="w-100">
<div class="d-flex flex-column align-items-start">
<div class="text-secondary p-2 px-3 rounded-2 w-100">
<div class="card"
style="background-color: #303131; border: 2px dashed rgb(82, 82, 82);">
<div class="card-body">
<h5 class="card-title text-white">
Example</h5>
<div class="mb-lg-0 text-white-50">
The sentence <span class="text-white">'Chatbots use AI to communicate with users'</span> is categorized as <span class="text-white"> 'Artificial Intelligence' </span> .
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Chat message left -->
</div>
</div>
</div>
<div
class="os-scrollbar os-scrollbar-horizontal os-scrollbar-unusable os-scrollbar-auto-hidden">
<div class="os-scrollbar-track os-scrollbar-track-off">
<div class="os-scrollbar-handle"
style="width: 100%; transform: translate(0px, 0px);"></div>
</div>
</div>
<div class="os-scrollbar os-scrollbar-vertical os-scrollbar-auto-hidden">
<div class="os-scrollbar-track os-scrollbar-track-off">
<div class="os-scrollbar-handle"
style="height: 32.4192%; transform: translate(0px, 0px);"></div>
</div>
</div>
<div class="os-scrollbar-corner"></div>
</div>
<!-- Chat conversation END -->
</div>
<!-- Conversation item END -->
</div>
</div>
<div class="card-footer" style="background-color: #242525;">
<form class="d-flex align-items-center" action="/sentence" method="post" id="sentenceForm">
<textarea class="form-control mb-sm-0 mb-3" id="ocr-result" name="text" data-autoresize=""
placeholder="Type your text" rows="1" style="height: 50px;box-sizing: border-box;
resize: none; max-height: 120px;" onclick="addAutoResize()" onkeydown="handleEnter(event)" required></textarea>
<button class="btn btn-sm btn-sentence ms-2"><img class="avatar avatar-xs"
src="../static/icons/avignon_universite_blanc_RVB-1.png"></button>
</form>
</div>
</div>
<!-- Chat conversation END -->
</div> <!-- Row END -->
<!-- =======================
Chat END -->
</div>
<!-- Container END -->
</main>
<!-- Container END -->
<script src="../static/js/sentence.js" type="text/javascript"></script>
<script src="../static/js/vendor.bundle.base.js"></script>
<script src="../static/js/Chart.min.js"></script>
<!-- Custom js for this page-->
<script src="../static/js/bootstrap.bundle.min.js"></script>
<script src="../static/js/OverlayScrollbars.min.js"></script>
<script>
// START: 12 Auto resize textarea
function addAutoResize() {
document.querySelectorAll('[data-autoresize]').forEach(function (element) {
element.style.boxSizing = 'border-box';
var offset = element.offsetHeight - element.clientHeight;
element.addEventListener('input', function (event) {
event.target.style.height = 'auto';
event.target.style.height = event.target.scrollHeight + offset + 'px';
});
element.removeAttribute('data-autoresize');
});
}
// END: Auto resize textarea
</script>
</body>
</html> |