Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
server.py
CHANGED
|
@@ -246,8 +246,7 @@ async def get_scripture_configs():
|
|
| 246 |
"title": s["title"], # e.g. "Bhagavad Gita"
|
| 247 |
"unit": s["unit"], # e.g. "verse" or "page"
|
| 248 |
"total": num_units,
|
| 249 |
-
"enabled":
|
| 250 |
-
in ("divya_prabandham", "chathusloki", "vishnu_sahasranamam"),
|
| 251 |
}
|
| 252 |
)
|
| 253 |
return {"scriptures": sorted(scriptures, key=lambda s: s["title"])}
|
|
|
|
| 246 |
"title": s["title"], # e.g. "Bhagavad Gita"
|
| 247 |
"unit": s["unit"], # e.g. "verse" or "page"
|
| 248 |
"total": num_units,
|
| 249 |
+
"enabled": "field_mapping" in s,
|
|
|
|
| 250 |
}
|
| 251 |
)
|
| 252 |
return {"scriptures": sorted(scriptures, key=lambda s: s["title"])}
|