Spaces:
Sleeping
Sleeping
neuralworm
commited on
Commit
·
a43193c
1
Parent(s):
1032a12
set source languages of rigveda and tripitaka
Browse files- hindu.py +2 -1
- tripitaka.py +2 -1
hindu.py
CHANGED
@@ -93,7 +93,8 @@ def process_json_files(start=1, end=10, step=1, rounds="1", length=0, tlang="en"
|
|
93 |
"title": f"Mandala {i}",
|
94 |
"result_text": result_text,
|
95 |
"result_sum": calculate_gematria(result_text),
|
96 |
-
"translated_text": translated_text
|
|
|
97 |
})
|
98 |
|
99 |
except (FileNotFoundError, json.JSONDecodeError, KeyError) as e:
|
|
|
93 |
"title": f"Mandala {i}",
|
94 |
"result_text": result_text,
|
95 |
"result_sum": calculate_gematria(result_text),
|
96 |
+
"translated_text": translated_text,
|
97 |
+
"source_language": "hi",
|
98 |
})
|
99 |
|
100 |
except (FileNotFoundError, json.JSONDecodeError, KeyError) as e:
|
tripitaka.py
CHANGED
@@ -92,7 +92,8 @@ def process_json_files(start=1, end=52, step=1, rounds="1,-1", length=0, tlang="
|
|
92 |
"title": f'{data.get("title")} {data.get("book_name")} {data.get("chapter")}',
|
93 |
"result_text": result_text,
|
94 |
"result_sum": calculate_gematria(result_text),
|
95 |
-
"translated_text": translated_text
|
|
|
96 |
})
|
97 |
|
98 |
except (FileNotFoundError, json.JSONDecodeError, KeyError) as e:
|
|
|
92 |
"title": f'{data.get("title")} {data.get("book_name")} {data.get("chapter")}',
|
93 |
"result_text": result_text,
|
94 |
"result_sum": calculate_gematria(result_text),
|
95 |
+
"translated_text": translated_text,
|
96 |
+
"source_language": "mr",
|
97 |
})
|
98 |
|
99 |
except (FileNotFoundError, json.JSONDecodeError, KeyError) as e:
|