Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Upload folder using huggingface_hub
Browse files
modules/config/sri_vachana_bhushanam.py
CHANGED
|
@@ -18,6 +18,8 @@ sri_vachana_bhushanam_config = {
|
|
| 18 |
"field_mapping": {
|
| 19 |
"text": "sutra_text_ta",
|
| 20 |
"unit_index": "verse",
|
|
|
|
|
|
|
| 21 |
"chapter_name": lambda doc: (
|
| 22 |
f"{doc.get('chapter_name')}({doc.get('chapter_name_ta')})"
|
| 23 |
),
|
|
@@ -34,10 +36,7 @@ sri_vachana_bhushanam_config = {
|
|
| 34 |
"description": "Name of the Chapter in English",
|
| 35 |
"show_as_filter": True,
|
| 36 |
"component": "dropdown",
|
| 37 |
-
"lov": lambda: [
|
| 38 |
-
"thaniyan",
|
| 39 |
-
"sutra"
|
| 40 |
-
],
|
| 41 |
"is_unique": True,
|
| 42 |
},
|
| 43 |
{
|
|
@@ -47,10 +46,7 @@ sri_vachana_bhushanam_config = {
|
|
| 47 |
"description": "Name of the Chapter in Tamil",
|
| 48 |
"show_as_filter": True,
|
| 49 |
"component": "dropdown",
|
| 50 |
-
"lov": lambda: [
|
| 51 |
-
"தனியன்",
|
| 52 |
-
"சூத்திரம்"
|
| 53 |
-
],
|
| 54 |
"is_unique": True,
|
| 55 |
},
|
| 56 |
{
|
|
@@ -102,7 +98,8 @@ sri_vachana_bhushanam_config = {
|
|
| 102 |
"name": "koyil.org",
|
| 103 |
"url": "https://granthams.koyil.org",
|
| 104 |
"role": "Data provider",
|
| 105 |
-
|
|
|
|
| 106 |
],
|
| 107 |
"audio": [
|
| 108 |
{
|
|
@@ -113,5 +110,5 @@ sri_vachana_bhushanam_config = {
|
|
| 113 |
},
|
| 114 |
],
|
| 115 |
"video": [],
|
| 116 |
-
},
|
| 117 |
}
|
|
|
|
| 18 |
"field_mapping": {
|
| 19 |
"text": "sutra_text_ta",
|
| 20 |
"unit_index": "verse",
|
| 21 |
+
"translation": lambda doc: f"**Background**: \n{doc.get('story','')}\n\n **Simple Meaning**\n{doc.get('simple_en','')}",
|
| 22 |
+
"word_by_word_native": "commentary",
|
| 23 |
"chapter_name": lambda doc: (
|
| 24 |
f"{doc.get('chapter_name')}({doc.get('chapter_name_ta')})"
|
| 25 |
),
|
|
|
|
| 36 |
"description": "Name of the Chapter in English",
|
| 37 |
"show_as_filter": True,
|
| 38 |
"component": "dropdown",
|
| 39 |
+
"lov": lambda: ["thaniyan", "sutra"],
|
|
|
|
|
|
|
|
|
|
| 40 |
"is_unique": True,
|
| 41 |
},
|
| 42 |
{
|
|
|
|
| 46 |
"description": "Name of the Chapter in Tamil",
|
| 47 |
"show_as_filter": True,
|
| 48 |
"component": "dropdown",
|
| 49 |
+
"lov": lambda: ["தனியன்", "சூத்திரம்"],
|
|
|
|
|
|
|
|
|
|
| 50 |
"is_unique": True,
|
| 51 |
},
|
| 52 |
{
|
|
|
|
| 98 |
"name": "koyil.org",
|
| 99 |
"url": "https://granthams.koyil.org",
|
| 100 |
"role": "Data provider",
|
| 101 |
+
"photo_url": "https://secure.gravatar.com/avatar/27d6c78e7e79455a2692808455865bc46e6be90018cf66e5a00d731fc8e8d83f?s=50&d=mm&r=g",
|
| 102 |
+
},
|
| 103 |
],
|
| 104 |
"audio": [
|
| 105 |
{
|
|
|
|
| 110 |
},
|
| 111 |
],
|
| 112 |
"video": [],
|
| 113 |
+
},
|
| 114 |
}
|