neuralworm commited on
Commit
e2cd652
·
1 Parent(s): 731c44a

better defaults

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -196,7 +196,7 @@ def perform_els_search(step, rounds_combination, tlang, strip_spaces, strip_in_b
196
  results["Quran"] = []
197
 
198
  if include_hindu:
199
- results["Rig Veda"] = cached_process_json_files(hindu.process_json_files, 1, 10, step, rounds_combination, length, tlang, False, strip_in_braces, strip_diacritics_chk)
200
  else:
201
  results["Rig Veda"] = []
202
 
@@ -318,13 +318,12 @@ with gr.Blocks() as app:
318
  include_torah_chk = gr.Checkbox(label="Include Torah", value=True)
319
  include_bible_chk = gr.Checkbox(label="Include Bible", value=True)
320
  include_quran_chk = gr.Checkbox(label="Include Quran", value=True)
321
- include_hindu_chk = gr.Checkbox(label="Include Rigveda", value=True)
322
- include_tripitaka_chk = gr.Checkbox(label="Include Tripitaka", value=True)
323
- merge_results_chk = gr.Checkbox(label="Merge Results (Torah-Bible-Quran)", value=True)
324
 
325
- strip_spaces = gr.Checkbox(label="Strip Spaces from Books", value=True)
326
- strip_in_braces = gr.Checkbox(label="Strip Text in Braces from Books", value=True)
327
- strip_diacritics_chk = gr.Checkbox(label="Strip Diacritics from Books", value=True)
328
 
329
  translate_btn = gr.Button("Search with ELS")
330
 
 
196
  results["Quran"] = []
197
 
198
  if include_hindu:
199
+ results["Rig Veda"] = cached_process_json_files(hindu.process_json_files, 1, 10, step, rounds_combination, length, tlang, strip_spaces, strip_in_braces, strip_diacritics_chk)
200
  else:
201
  results["Rig Veda"] = []
202
 
 
318
  include_torah_chk = gr.Checkbox(label="Include Torah", value=True)
319
  include_bible_chk = gr.Checkbox(label="Include Bible", value=True)
320
  include_quran_chk = gr.Checkbox(label="Include Quran", value=True)
321
+ include_hindu_chk = gr.Checkbox(label="Include Rigveda", value=False)
322
+ include_tripitaka_chk = gr.Checkbox(label="Include Tripitaka", value=False)
 
323
 
324
+ strip_spaces = gr.Checkbox(label="Strip Spaces from Books", value=False)
325
+ strip_in_braces = gr.Checkbox(label="Strip Text in Braces from Books", value=False)
326
+ strip_diacritics_chk = gr.Checkbox(label="Strip Diacritics from Books", value=False)
327
 
328
  translate_btn = gr.Button("Search with ELS")
329