vikramvasudevan commited on
Commit
cb9d3ce
·
verified ·
1 Parent(s): 0f0122d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. server.py +1 -2
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": s["name"]
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"])}