cryptocalypse
commited on
Commit
•
6767c84
1
Parent(s):
e05c0c0
Update app.py
Browse files
app.py
CHANGED
@@ -72,6 +72,21 @@ LOAD PREDICT_FUTURES(DEPH)
|
|
72 |
|
73 |
"""
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
def respond(
|
76 |
message,
|
77 |
history: list[tuple[str, str]],
|
@@ -118,7 +133,12 @@ with gr.Blocks(title="NWO BOT") as app:
|
|
118 |
txt_search = gr.Textbox(value="Donald Trump",scale=5)
|
119 |
btn_search = gr.Button("Search",scale=1)
|
120 |
with gr.Row():
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
with gr.Row():
|
124 |
big_block = gr.HTML("""
|
|
|
72 |
|
73 |
"""
|
74 |
|
75 |
+
|
76 |
+
def search(book_num,prompt):
|
77 |
+
els_space = torah.gematria_sum(prompt)
|
78 |
+
if els_space==0:
|
79 |
+
els_space=torah.gematria(prompt)
|
80 |
+
res=[]
|
81 |
+
for bok in booklist:
|
82 |
+
response_els, tvalue = torah.els(bok, els_space, tracert='false')
|
83 |
+
text_translate = torah.func_translate('iw', 'en', "".join(response_els))
|
84 |
+
res.append({"Book":bok,"Prompt gematria":els_space,"ELS Generated":response_els,"ELS Translated": text_translate})
|
85 |
+
|
86 |
+
df = pd.DataFrame(res)
|
87 |
+
|
88 |
+
return df
|
89 |
+
|
90 |
def respond(
|
91 |
message,
|
92 |
history: list[tuple[str, str]],
|
|
|
133 |
txt_search = gr.Textbox(value="Donald Trump",scale=5)
|
134 |
btn_search = gr.Button("Search",scale=1)
|
135 |
with gr.Row():
|
136 |
+
search_results = gr.Dataframe(type="pandas")
|
137 |
+
btn_search.click(
|
138 |
+
els_book,
|
139 |
+
inputs=[txt_search,txt_search],
|
140 |
+
outputs=search_results
|
141 |
+
)
|
142 |
|
143 |
with gr.Row():
|
144 |
big_block = gr.HTML("""
|