Spaces:
Runtime error
Runtime error
cryptocalypse
commited on
Commit
•
aad2a71
1
Parent(s):
9184b75
memory improvements, diferent bugs solved, search improvement, parsers
Browse files
app.py
CHANGED
@@ -16,10 +16,10 @@ except:
|
|
16 |
def els_book(book_num,prompt):
|
17 |
els_space = torah.gematria_sum(prompt)
|
18 |
res=[]
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
return res
|
25 |
|
@@ -90,10 +90,10 @@ with gr.Blocks(title="Sophia, Torah Codes") as demo:
|
|
90 |
)
|
91 |
with gr.Tab("ELS"):
|
92 |
with gr.Row():
|
93 |
-
books_sel = gr.CheckboxGroup(booklist, label="Books", info="Torah books source")
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
with gr.Row():
|
98 |
to_convert = gr.Textbox(label="Prompt to gematria conversion for apply ELS",scale=3)
|
99 |
langgem=gr.Dropdown(
|
|
|
16 |
def els_book(book_num,prompt):
|
17 |
els_space = torah.gematria_sum(prompt)
|
18 |
res=[]
|
19 |
+
for bok in book_num:
|
20 |
+
response_els, tvalue = torah.els(bk, els_space, tracert='false')
|
21 |
+
text_translate = torah.func_translate('iw', 'en', response_els)
|
22 |
+
res.append({"Book":bk,"Prompt gematria":els_space,"ELS Generated":response_els,"ELS Translated": text_translate})
|
23 |
|
24 |
return res
|
25 |
|
|
|
90 |
)
|
91 |
with gr.Tab("ELS"):
|
92 |
with gr.Row():
|
93 |
+
#books_sel = gr.CheckboxGroup(booklist, label="Books", info="Torah books source")
|
94 |
+
gr.Dropdown(
|
95 |
+
booklist, value=booklist, multiselect=True, filterable=True,label="Books", info="Select Books"
|
96 |
+
)
|
97 |
with gr.Row():
|
98 |
to_convert = gr.Textbox(label="Prompt to gematria conversion for apply ELS",scale=3)
|
99 |
langgem=gr.Dropdown(
|