Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -216,231 +216,227 @@ ekush_mappings = {
|
|
216 |
'৮': 108,
|
217 |
'৯': 109
|
218 |
}
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
'ং': 219,
|
441 |
-
'ঃ': 220,
|
442 |
-
'ঁ': 221
|
443 |
-
}
|
444 |
character_mappings_model_wise={
|
445 |
"ahmedfaiyaz/OkkhorDiffusion":character_mappings,
|
446 |
"ahmedfaiyaz/OkkhorDiffusion-CMATERdb":cmaterdb_mappings,
|
|
|
216 |
'৮': 108,
|
217 |
'৯': 109
|
218 |
}
|
219 |
+
cmaterdb_mappings={'প্র': 0,
|
220 |
+
'ঙ্গ': 1,
|
221 |
+
'ক্ষ': 2,
|
222 |
+
'ত্র': 3,
|
223 |
+
'ন্দ': 4,
|
224 |
+
'চ্ছ': 5,
|
225 |
+
'ন্ত': 6,
|
226 |
+
'ন্দ্র': 7,
|
227 |
+
'স্ত': 8,
|
228 |
+
'ন্তু': 9,
|
229 |
+
'গ্র': 10,
|
230 |
+
'স্থ': 11,
|
231 |
+
'স্ট': 12,
|
232 |
+
'ম্ব': 13,
|
233 |
+
'স্ব': 14,
|
234 |
+
'ত্ত': 15,
|
235 |
+
'ক্ত': 16,
|
236 |
+
'ন্ট': 17,
|
237 |
+
'ল্প': 18,
|
238 |
+
'ষ্ট': 19,
|
239 |
+
'ন্ত্র': 20,
|
240 |
+
'ক্র': 21,
|
241 |
+
'ন্ন': 22,
|
242 |
+
'দ্ধ': 23,
|
243 |
+
'ন্ধ': 24,
|
244 |
+
'ঙ্ক': 25,
|
245 |
+
'ন্ড': 26,
|
246 |
+
'ফ্র': 27,
|
247 |
+
'ম্প': 28,
|
248 |
+
'স্ক': 29,
|
249 |
+
'জ্ঞ': 30,
|
250 |
+
'ক্ট': 31,
|
251 |
+
'শ্চ': 32,
|
252 |
+
'ট্র': 33,
|
253 |
+
'ত্ব': 34,
|
254 |
+
'ল্ল': 35,
|
255 |
+
'ব্র': 36,
|
256 |
+
'ঞ্চ': 37,
|
257 |
+
'ণ্ড': 38,
|
258 |
+
'ক্স': 39,
|
259 |
+
'শ্র': 40,
|
260 |
+
'দ্র': 41,
|
261 |
+
'স্প': 42,
|
262 |
+
'ঞ্জ': 43,
|
263 |
+
'ন্স': 44,
|
264 |
+
'ম্ভ': 45,
|
265 |
+
'শ্ব': 46,
|
266 |
+
'ব্দ': 47,
|
267 |
+
'শ্ন': 48,
|
268 |
+
'প্প': 49,
|
269 |
+
'ব্ল': 50,
|
270 |
+
'প্ত': 51,
|
271 |
+
'ক্ল': 52,
|
272 |
+
'ষ্ট্র': 53,
|
273 |
+
'দ্ব': 54,
|
274 |
+
'ট্ট': 55,
|
275 |
+
'গ্ল': 56,
|
276 |
+
'ল্ট': 57,
|
277 |
+
'ষ্ঠ': 58,
|
278 |
+
'স্ত্র': 59,
|
279 |
+
'প্ল': 60,
|
280 |
+
'চ্চ': 61,
|
281 |
+
'স্ম': 62,
|
282 |
+
'দ্দ': 63,
|
283 |
+
'গ্ন': 64,
|
284 |
+
'জ্ব': 65,
|
285 |
+
'ষ্ক': 66,
|
286 |
+
'ত্ম': 67,
|
287 |
+
'ড্র': 68,
|
288 |
+
'ম্ম': 69,
|
289 |
+
'ণ্ট': 70,
|
290 |
+
'ম্প্র': 71,
|
291 |
+
'প্ন': 72,
|
292 |
+
'ন্ম': 73,
|
293 |
+
'স্ফ': 74,
|
294 |
+
'ল্দ': 75,
|
295 |
+
'ত্ত্ব': 76,
|
296 |
+
'জ্জ': 77,
|
297 |
+
'ক্ষ্ম': 78,
|
298 |
+
'ষ্ণ': 79,
|
299 |
+
'ন্ব': 80,
|
300 |
+
'ক্ক': 81,
|
301 |
+
'ন্থ': 82,
|
302 |
+
'ড্ড': 83,
|
303 |
+
'ব্ব': 84,
|
304 |
+
'ন্ট্র': 85,
|
305 |
+
'ণ্ঠ': 86,
|
306 |
+
'প্ট': 87,
|
307 |
+
'স্তু': 88,
|
308 |
+
'ধ্ব': 89,
|
309 |
+
'হ্ণ': 90,
|
310 |
+
'ভ্র': 91,
|
311 |
+
'ল্ক': 92,
|
312 |
+
'স্ল': 93,
|
313 |
+
'হ্ন': 94,
|
314 |
+
'ত্ন': 95,
|
315 |
+
'ষ্ক্র': 96,
|
316 |
+
'ঘ্র': 97,
|
317 |
+
'দ্ভ': 98,
|
318 |
+
'শ্ল': 99,
|
319 |
+
'ব্ধ': 100,
|
320 |
+
'ষ্ম': 101,
|
321 |
+
'স্ক্র': 102,
|
322 |
+
'ড়্গ': 103,
|
323 |
+
'জ্জ্ব': 104,
|
324 |
+
'শ্ম': 105,
|
325 |
+
'দ্ম': 106,
|
326 |
+
'ক্ব': 107,
|
327 |
+
'ম্র': 108,
|
328 |
+
'গ্ধ': 109,
|
329 |
+
'ব্জ': 110,
|
330 |
+
'স্ন': 111,
|
331 |
+
'ন্দ্ব': 112,
|
332 |
+
'হ্ম': 113,
|
333 |
+
'ঙ্ঘ': 114,
|
334 |
+
'খ্র': 115,
|
335 |
+
'ত্থ': 116,
|
336 |
+
'ল্ব': 117,
|
337 |
+
'ম্ন': 118,
|
338 |
+
'ঘ্ন': 119,
|
339 |
+
'গ্গ': 120,
|
340 |
+
'ক্ষ্ণ': 121,
|
341 |
+
'গ্রু': 122,
|
342 |
+
'চ্ছ্ব': 123,
|
343 |
+
'ণ্ণ': 124,
|
344 |
+
'ল্ম': 125,
|
345 |
+
'স্র': 126,
|
346 |
+
'ম্ল': 127,
|
347 |
+
'ষ্প্র': 128,
|
348 |
+
'ঞ্ঝ': 129,
|
349 |
+
'স্প্র': 130,
|
350 |
+
'ম্ভ্র': 131,
|
351 |
+
'ষ্প': 132,
|
352 |
+
'ঙ্খ': 133,
|
353 |
+
'জ্র': 134,
|
354 |
+
'গ্ব': 135,
|
355 |
+
'থ্ব': 136,
|
356 |
+
'ণ্ব': 137,
|
357 |
+
'হ্ব': 138,
|
358 |
+
'দ্দ্ব': 139,
|
359 |
+
'দ্ঘ': 140,
|
360 |
+
'ধ্র': 141,
|
361 |
+
'হ্ল': 142,
|
362 |
+
'গ্ম': 143,
|
363 |
+
'ল্গ': 144,
|
364 |
+
'স্খ': 145,
|
365 |
+
'থ্র': 146,
|
366 |
+
'ন্ধ্র': 147,
|
367 |
+
'ফ্ল': 148,
|
368 |
+
'ঙ্ক্ষ': 149,
|
369 |
+
'ণ্ম': 150,
|
370 |
+
'ঞ্ছ': 151,
|
371 |
+
'ম্ফ': 152,
|
372 |
+
'হ্র': 153,
|
373 |
+
'প্রু': 154,
|
374 |
+
'ত্রু': 155,
|
375 |
+
'ভ্ল': 156,
|
376 |
+
'শ্রু': 157,
|
377 |
+
'দ্রু': 158,
|
378 |
+
'ঙ্ম': 159,
|
379 |
+
'ক্ম': 160,
|
380 |
+
'দ্গ': 161,
|
381 |
+
'ন্ড্র': 162,
|
382 |
+
'ট্ব': 163,
|
383 |
+
'চ্ঞ': 164,
|
384 |
+
'প্স': 165,
|
385 |
+
'ল্ড': 166,
|
386 |
+
'ষ্ফ': 167,
|
387 |
+
'শ্ছ': 168,
|
388 |
+
'জ্ঝ': 169,
|
389 |
+
'স্ট্র': 170,
|
390 |
+
'অ': 171,
|
391 |
+
'আ': 172,
|
392 |
+
'ই': 173,
|
393 |
+
'ঈ': 174,
|
394 |
+
'উ': 175,
|
395 |
+
'ঊ': 176,
|
396 |
+
'ঋ': 177,
|
397 |
+
'এ': 178,
|
398 |
+
'ঐ': 179,
|
399 |
+
'ও': 180,
|
400 |
+
'ঔ': 181,
|
401 |
+
'ক': 182,
|
402 |
+
'খ': 183,
|
403 |
+
'গ': 184,
|
404 |
+
'ঘ': 185,
|
405 |
+
'ঙ': 186,
|
406 |
+
'চ': 187,
|
407 |
+
'ছ': 188,
|
408 |
+
'জ': 189,
|
409 |
+
'ঝ': 190,
|
410 |
+
'ঞ': 191,
|
411 |
+
'ট': 192,
|
412 |
+
'ঠ': 193,
|
413 |
+
'ড': 194,
|
414 |
+
'ঢ': 195,
|
415 |
+
'ণ': 196,
|
416 |
+
'ত': 197,
|
417 |
+
'থ': 198,
|
418 |
+
'দ': 199,
|
419 |
+
'ধ': 200,
|
420 |
+
'ন': 201,
|
421 |
+
'প': 202,
|
422 |
+
'ফ': 203,
|
423 |
+
'ব': 204,
|
424 |
+
'ভ': 205,
|
425 |
+
'ম': 206,
|
426 |
+
'য': 207,
|
427 |
+
'র': 208,
|
428 |
+
'ল': 209,
|
429 |
+
'শ': 210,
|
430 |
+
'ষ': 211,
|
431 |
+
'স': 212,
|
432 |
+
'হ': 213,
|
433 |
+
'ড়': 214,
|
434 |
+
'ঢ়': 215,
|
435 |
+
'য়': 216,
|
436 |
+
'ৎ': 217,
|
437 |
+
'ং': 218,
|
438 |
+
'ঃ': 219,
|
439 |
+
'ঁ': 220}
|
|
|
|
|
|
|
|
|
440 |
character_mappings_model_wise={
|
441 |
"ahmedfaiyaz/OkkhorDiffusion":character_mappings,
|
442 |
"ahmedfaiyaz/OkkhorDiffusion-CMATERdb":cmaterdb_mappings,
|