Spaces:
Runtime error
Runtime error
Commit
·
4fa11f9
1
Parent(s):
b14896d
fuck solved ?
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def els_book(book_num,prompt):
|
|
| 17 |
els_space = torah.gematria_sum(prompt)
|
| 18 |
res=[]
|
| 19 |
for bok in booklist:
|
| 20 |
-
response_els, tvalue = torah.els(
|
| 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 |
|
|
@@ -90,10 +90,7 @@ with gr.Blocks(title="Sophia, Torah Codes") as demo:
|
|
| 90 |
)
|
| 91 |
with gr.Tab("ELS"):
|
| 92 |
with gr.Row():
|
| 93 |
-
|
| 94 |
-
books_sel = 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(
|
|
@@ -105,7 +102,7 @@ with gr.Blocks(title="Sophia, Torah Codes") as demo:
|
|
| 105 |
els_results = gr.JSON(label="Results")
|
| 106 |
search_els.click(
|
| 107 |
els_book,
|
| 108 |
-
inputs=[
|
| 109 |
outputs=els_results
|
| 110 |
)
|
| 111 |
with gr.Row():
|
|
|
|
| 17 |
els_space = torah.gematria_sum(prompt)
|
| 18 |
res=[]
|
| 19 |
for bok in booklist:
|
| 20 |
+
response_els, tvalue = torah.els(bok, 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 |
|
|
|
|
| 90 |
)
|
| 91 |
with gr.Tab("ELS"):
|
| 92 |
with gr.Row():
|
| 93 |
+
books_sel = gr.CheckboxGroup(booklist, label="Books", info="Torah books source")
|
|
|
|
|
|
|
|
|
|
| 94 |
with gr.Row():
|
| 95 |
to_convert = gr.Textbox(label="Prompt to gematria conversion for apply ELS",scale=3)
|
| 96 |
langgem=gr.Dropdown(
|
|
|
|
| 102 |
els_results = gr.JSON(label="Results")
|
| 103 |
search_els.click(
|
| 104 |
els_book,
|
| 105 |
+
inputs=[to_convert,to_convert],
|
| 106 |
outputs=els_results
|
| 107 |
)
|
| 108 |
with gr.Row():
|