Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -439,7 +439,7 @@ with gr.Blocks(
|
|
| 439 |
await asyncio.sleep(0.05)
|
| 440 |
return
|
| 441 |
|
| 442 |
-
for scripture in SanatanConfig.scriptures:
|
| 443 |
with gr.Accordion(label=f"{scripture['title']}", open=False):
|
| 444 |
gr.Markdown(f"* Source: [🔗 click here]({scripture['source']})")
|
| 445 |
gr.Markdown(f"* Language: {scripture['language']}")
|
|
|
|
| 439 |
await asyncio.sleep(0.05)
|
| 440 |
return
|
| 441 |
|
| 442 |
+
for scripture in sorted(SanatanConfig.scriptures, key=lambda d: d.get("title")):
|
| 443 |
with gr.Accordion(label=f"{scripture['title']}", open=False):
|
| 444 |
gr.Markdown(f"* Source: [🔗 click here]({scripture['source']})")
|
| 445 |
gr.Markdown(f"* Language: {scripture['language']}")
|
config.py
CHANGED
|
@@ -189,7 +189,7 @@ class SanatanConfig:
|
|
| 189 |
],
|
| 190 |
"pdf_path": "./data/divya_prabandham.pdf",
|
| 191 |
"source": "https://uveda.org",
|
| 192 |
-
"language": "
|
| 193 |
"example_labels": [
|
| 194 |
"About the five elements",
|
| 195 |
"About Garuda",
|
|
@@ -252,7 +252,7 @@ class SanatanConfig:
|
|
| 252 |
],
|
| 253 |
"pdf_path": "./data/kamba_ramayanam.pdf",
|
| 254 |
"source": "https://www.hindupedia.com/images/1/13/Kamba_Ramayanam_I.pdf",
|
| 255 |
-
"language": "
|
| 256 |
"example_labels": [
|
| 257 |
"About Jatayu",
|
| 258 |
"About Hanuman",
|
|
@@ -287,7 +287,7 @@ class SanatanConfig:
|
|
| 287 |
],
|
| 288 |
"pdf_path": "./data/kamba_ramayanam.pdf",
|
| 289 |
"source": "https://archive.org/details/vrajeshkumar_gmail_061/01-%E0%AE%AA%E0%AE%BE%E0%AE%B2%20%E0%AE%95%E0%AE%BE%E0%AE%A3%E0%AF%8D%E0%AE%9F%E0%AE%AE%E0%AF%8D/page/n15/mode/2up",
|
| 290 |
-
"language": "
|
| 291 |
"example_labels": [
|
| 292 |
"About Jatayu",
|
| 293 |
"About Hanuman",
|
|
|
|
| 189 |
],
|
| 190 |
"pdf_path": "./data/divya_prabandham.pdf",
|
| 191 |
"source": "https://uveda.org",
|
| 192 |
+
"language": "tamil",
|
| 193 |
"example_labels": [
|
| 194 |
"About the five elements",
|
| 195 |
"About Garuda",
|
|
|
|
| 252 |
],
|
| 253 |
"pdf_path": "./data/kamba_ramayanam.pdf",
|
| 254 |
"source": "https://www.hindupedia.com/images/1/13/Kamba_Ramayanam_I.pdf",
|
| 255 |
+
"language": "tamil",
|
| 256 |
"example_labels": [
|
| 257 |
"About Jatayu",
|
| 258 |
"About Hanuman",
|
|
|
|
| 287 |
],
|
| 288 |
"pdf_path": "./data/kamba_ramayanam.pdf",
|
| 289 |
"source": "https://archive.org/details/vrajeshkumar_gmail_061/01-%E0%AE%AA%E0%AE%BE%E0%AE%B2%20%E0%AE%95%E0%AE%BE%E0%AE%A3%E0%AF%8D%E0%AE%9F%E0%AE%AE%E0%AF%8D/page/n15/mode/2up",
|
| 290 |
+
"language": "tamil",
|
| 291 |
"example_labels": [
|
| 292 |
"About Jatayu",
|
| 293 |
"About Hanuman",
|