Spaces:
Sleeping
Sleeping
Chaitanya Sagar Gurujula
commited on
Commit
·
9e1792d
1
Parent(s):
ec11034
Add application file
Browse files- .DS_Store +0 -0
- src/.DS_Store +0 -0
- src/templates/index.html +13 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
src/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
src/templates/index.html
CHANGED
@@ -9,6 +9,14 @@
|
|
9 |
<h1 class="text-3xl font-bold mb-8">Telugu BPE Tokenizer</h1>
|
10 |
|
11 |
<div class="bg-white rounded-lg shadow p-6">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<textarea
|
13 |
id="input-text"
|
14 |
class="w-full p-2 border rounded mb-4"
|
@@ -56,6 +64,11 @@
|
|
56 |
</div>
|
57 |
|
58 |
<script>
|
|
|
|
|
|
|
|
|
|
|
59 |
async function tokenize() {
|
60 |
const text = document.getElementById('input-text').value;
|
61 |
try {
|
|
|
9 |
<h1 class="text-3xl font-bold mb-8">Telugu BPE Tokenizer</h1>
|
10 |
|
11 |
<div class="bg-white rounded-lg shadow p-6">
|
12 |
+
<div class="mb-6">
|
13 |
+
<h3 class="text-lg font-semibold mb-2">Example Texts:</h3>
|
14 |
+
<div class="space-y-2">
|
15 |
+
<div class="p-2 bg-gray-50 rounded cursor-pointer hover:bg-gray-100" onclick="copyToInput(this)">తిరుపతి తొక్కిలసాట ఘటన తీవ్ర విషాదాన్ని నింపింది.</div>
|
16 |
+
<div class="p-2 bg-gray-50 rounded cursor-pointer hover:bg-gray-100" onclick="copyToInput(this)">పవర్ స్టార్, ఏపీ డిప్యూటీ సీఎం, జనసేన పార్టీ అధ్యక్షుడు</div>
|
17 |
+
</div>
|
18 |
+
</div>
|
19 |
+
|
20 |
<textarea
|
21 |
id="input-text"
|
22 |
class="w-full p-2 border rounded mb-4"
|
|
|
64 |
</div>
|
65 |
|
66 |
<script>
|
67 |
+
function copyToInput(element) {
|
68 |
+
const text = element.textContent;
|
69 |
+
document.getElementById('input-text').value = text;
|
70 |
+
}
|
71 |
+
|
72 |
async function tokenize() {
|
73 |
const text = document.getElementById('input-text').value;
|
74 |
try {
|