Spaces:
Runtime error
Runtime error
cryptocalypse
commited on
Commit
•
d6d63c0
1
Parent(s):
6ae4a88
gematria and temuraeh repair
Browse files- app.py +10 -10
- lib/temuraeh.py +7 -5
app.py
CHANGED
@@ -95,10 +95,10 @@ def ziruph_dec(dic,text):
|
|
95 |
def gematria_sum(text):
|
96 |
els_space = torah.gematria_sum(text)
|
97 |
if els_space==0:
|
98 |
-
els_space=torah.gematria(
|
99 |
|
100 |
# Berechnet die Gematria-Summe für den eingegebenen Text
|
101 |
-
return
|
102 |
|
103 |
|
104 |
"""
|
@@ -168,7 +168,7 @@ with gr.Blocks(title="Sophia, Torah Codes",css=css,js=js) as app:
|
|
168 |
retry_btn=None,
|
169 |
undo_btn="Undo",
|
170 |
clear_btn="Clear",
|
171 |
-
examples=["I want you to interpret a dream where I travel to space and see the earth in small size, then a fireball comes for me and I teleport to another planet full of fruits, trees and forests, there I meet a witch who makes me drink a potion and then I wake up","Tell me how religion, the stars and the written language and its symbols are intertwined","Explain to me all the biblical references about God being the word literally.","What
|
172 |
)
|
173 |
|
174 |
#with gr.Tab("Chat"):
|
@@ -185,7 +185,7 @@ with gr.Blocks(title="Sophia, Torah Codes",css=css,js=js) as app:
|
|
185 |
with gr.Row():
|
186 |
to_convert = gr.Textbox(value="Alber Einstein 14 March 1879",label="Prompt to gematria conversion for apply ELS",scale=3)
|
187 |
langgem=gr.Dropdown(
|
188 |
-
["Hebrew", "Latin", "Greek"],value="Latin", label="Gematria Alphabet", info="Choose gematria conversion"
|
189 |
),
|
190 |
with gr.Row():
|
191 |
spaces_include = gr.Checkbox(label="Include Spaces", value=False)
|
@@ -219,9 +219,9 @@ with gr.Blocks(title="Sophia, Torah Codes",css=css,js=js) as app:
|
|
219 |
|
220 |
with gr.Tab("Temurae"):
|
221 |
with gr.Row():
|
222 |
-
text_temur = gr.Textbox(label="Text to encode with Temurah / Atbash algorihm",scale=3)
|
223 |
langte=gr.Dropdown(
|
224 |
-
["Hebrew", "Latin", "Greek"],value="
|
225 |
)
|
226 |
|
227 |
temurae_btn = gr.Button("Convert",scale=1)
|
@@ -229,8 +229,8 @@ with gr.Blocks(title="Sophia, Torah Codes",css=css,js=js) as app:
|
|
229 |
temurae_result = gr.Textbox(label="Results")
|
230 |
|
231 |
temurae_btn.click(
|
232 |
-
|
233 |
-
inputs=[text_temur,
|
234 |
outputs=temurae_result
|
235 |
)
|
236 |
|
@@ -240,7 +240,7 @@ with gr.Blocks(title="Sophia, Torah Codes",css=css,js=js) as app:
|
|
240 |
with gr.Row():
|
241 |
zir_text = gr.Textbox(label="Text to encode with Ziruph / Atbash algorihm",scale=3)
|
242 |
dictionary_zir=gr.Dropdown(
|
243 |
-
["Kircher", "Random", "Custom"],value="
|
244 |
)
|
245 |
custom_dic= gr.Textbox(value="C X Y B W P R V Q J Z M N T K E L D F G H I O U S",label="Custom Dictionary",scale=3)
|
246 |
zir_btn = gr.Button("Encrypt",scale=1)
|
@@ -255,7 +255,7 @@ with gr.Blocks(title="Sophia, Torah Codes",css=css,js=js) as app:
|
|
255 |
with gr.Row():
|
256 |
zir_text2 = gr.Textbox(label="Text to dencode with Ziruph / Atbash algorihm",scale=3)
|
257 |
dictionary_zir2=gr.Dropdown(
|
258 |
-
["Kircher", "Random", "Custom"],value="Latin", label="Ziruph Dictionary", info="Choose ziruph dictionary"
|
259 |
)
|
260 |
custom_dic2 = gr.Textbox(value="C X Y B W P R V Q J Z M N T K E L D F G H I O U S",label="Custom Dictionary",scale=3)
|
261 |
zir_btn2 = gr.Button("Decrypt",scale=1)
|
|
|
95 |
def gematria_sum(text):
|
96 |
els_space = torah.gematria_sum(text)
|
97 |
if els_space==0:
|
98 |
+
els_space=torah.gematria(text)
|
99 |
|
100 |
# Berechnet die Gematria-Summe für den eingegebenen Text
|
101 |
+
return els_space
|
102 |
|
103 |
|
104 |
"""
|
|
|
168 |
retry_btn=None,
|
169 |
undo_btn="Undo",
|
170 |
clear_btn="Clear",
|
171 |
+
examples=["I want you to interpret a dream where I travel to space and see the earth in small size, then a fireball comes for me and I teleport to another planet full of fruits, trees and forests, there I meet a witch who makes me drink a potion and then I wake up","Tell me how religion, the stars and the written language and its symbols are intertwined","Explain to me all the biblical references about God being the word literally.","What relationship do the characters of the alphabet have with the stars, constellations and planets?","Give me the names of angels for June 28, 2024 according to your knowledge","What prediction can you make according to the angelic tables for November 5, 2024, interpret it according to the Kabbalistic tradition?"]
|
172 |
)
|
173 |
|
174 |
#with gr.Tab("Chat"):
|
|
|
185 |
with gr.Row():
|
186 |
to_convert = gr.Textbox(value="Alber Einstein 14 March 1879",label="Prompt to gematria conversion for apply ELS",scale=3)
|
187 |
langgem=gr.Dropdown(
|
188 |
+
["Hebrew", "Latin", "Greek"],value="Latin",interactive=True, label="Gematria Alphabet", info="Choose gematria conversion"
|
189 |
),
|
190 |
with gr.Row():
|
191 |
spaces_include = gr.Checkbox(label="Include Spaces", value=False)
|
|
|
219 |
|
220 |
with gr.Tab("Temurae"):
|
221 |
with gr.Row():
|
222 |
+
text_temur = gr.Textbox(label="Text to encode with Temurah / Atbash algorihm",value="בפומת",scale=3)
|
223 |
langte=gr.Dropdown(
|
224 |
+
["Hebrew", "Latin", "Greek"],value="Hebrew",interactive=True, label="Temurah Alphabet", info="Choose Alphabet"
|
225 |
)
|
226 |
|
227 |
temurae_btn = gr.Button("Convert",scale=1)
|
|
|
229 |
temurae_result = gr.Textbox(label="Results")
|
230 |
|
231 |
temurae_btn.click(
|
232 |
+
temura_conv,
|
233 |
+
inputs=[text_temur,langte],
|
234 |
outputs=temurae_result
|
235 |
)
|
236 |
|
|
|
240 |
with gr.Row():
|
241 |
zir_text = gr.Textbox(label="Text to encode with Ziruph / Atbash algorihm",scale=3)
|
242 |
dictionary_zir=gr.Dropdown(
|
243 |
+
["Kircher", "Random", "Custom"],value="Custom",interactive=True, label="Ziruph Dictionary", info="Choose ziruph dictionary"
|
244 |
)
|
245 |
custom_dic= gr.Textbox(value="C X Y B W P R V Q J Z M N T K E L D F G H I O U S",label="Custom Dictionary",scale=3)
|
246 |
zir_btn = gr.Button("Encrypt",scale=1)
|
|
|
255 |
with gr.Row():
|
256 |
zir_text2 = gr.Textbox(label="Text to dencode with Ziruph / Atbash algorihm",scale=3)
|
257 |
dictionary_zir2=gr.Dropdown(
|
258 |
+
["Kircher", "Random", "Custom"],value="Latin",interactive=True, label="Ziruph Dictionary", info="Choose ziruph dictionary"
|
259 |
)
|
260 |
custom_dic2 = gr.Textbox(value="C X Y B W P R V Q J Z M N T K E L D F G H I O U S",label="Custom Dictionary",scale=3)
|
261 |
zir_btn2 = gr.Button("Decrypt",scale=1)
|
lib/temuraeh.py
CHANGED
@@ -4,7 +4,7 @@ import json
|
|
4 |
# Nota: La representación exacta de "Baphomet" y "Sofia" en hebreo puede variar debido a interpretaciones,
|
5 |
# pero aquí usaremos transliteraciones aproximadas para ilustrar cómo podría hacerse.
|
6 |
|
7 |
-
def temurah(text, hebrew_alphabet='אבגדהוזחטיכלמנסעפצקרשת', reverse=
|
8 |
"""
|
9 |
Aplica la temurah a un texto hebreo utilizando todo el alfabeto hebreo.
|
10 |
El esquema de ejemplo simplemente invierte el orden del alfabeto.
|
@@ -26,18 +26,20 @@ def temurah(text, hebrew_alphabet='אבגדהוזחטיכלמנסעפצקרשת'
|
|
26 |
|
27 |
# Definir el alfabeto hebreo
|
28 |
hebrew_alphabet = 'אבגדהוזחטיכלמנסעפצקרשת'
|
|
|
29 |
latin_alphabet = 'abcdefghijklmnopqrstuvwxyz'
|
30 |
|
31 |
|
32 |
def temura_conv(txt,lang):
|
33 |
-
if lang=="
|
34 |
alphabet = hebrew_alphabet
|
35 |
-
elif lang=="
|
36 |
-
alphabet=
|
37 |
else:
|
38 |
-
alphabet=
|
39 |
|
40 |
res = temurah(txt,alphabet)
|
|
|
41 |
# Aplicar temurah al texto hipotético de "Baphomet"
|
42 |
return res
|
43 |
|
|
|
4 |
# Nota: La representación exacta de "Baphomet" y "Sofia" en hebreo puede variar debido a interpretaciones,
|
5 |
# pero aquí usaremos transliteraciones aproximadas para ilustrar cómo podría hacerse.
|
6 |
|
7 |
+
def temurah(text, hebrew_alphabet='אבגדהוזחטיכלמנסעפצקרשת', reverse=True):
|
8 |
"""
|
9 |
Aplica la temurah a un texto hebreo utilizando todo el alfabeto hebreo.
|
10 |
El esquema de ejemplo simplemente invierte el orden del alfabeto.
|
|
|
26 |
|
27 |
# Definir el alfabeto hebreo
|
28 |
hebrew_alphabet = 'אבגדהוזחטיכלמנסעפצקרשת'
|
29 |
+
|
30 |
latin_alphabet = 'abcdefghijklmnopqrstuvwxyz'
|
31 |
|
32 |
|
33 |
def temura_conv(txt,lang):
|
34 |
+
if lang=="Hebrew":
|
35 |
alphabet = hebrew_alphabet
|
36 |
+
elif lang=="Latin":
|
37 |
+
alphabet= latin_alphabet
|
38 |
else:
|
39 |
+
alphabet=latin_alphabet
|
40 |
|
41 |
res = temurah(txt,alphabet)
|
42 |
+
|
43 |
# Aplicar temurah al texto hipotético de "Baphomet"
|
44 |
return res
|
45 |
|