cryptocalypse
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,20 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from datasets import load_dataset
|
4 |
-
|
5 |
-
from lib.gematria import calculate_gematria, strip_diacritics
|
6 |
-
from lib.temuraeh import temura_conv
|
7 |
-
from lib.notarikon import notarikon
|
8 |
-
from lib.ziruph import encrypt,decrypt
|
9 |
-
from lib.entropy import *
|
10 |
-
from torahcodes.resources.func.torah import *
|
11 |
-
from lib.sonsofstars import *
|
12 |
import pandas as pd
|
13 |
## Loas I classes
|
14 |
from lib.me import *
|
15 |
|
16 |
## Initialize I class
|
17 |
-
ME = I("","","",
|
18 |
## Memory dataframe viewer
|
19 |
fastmem = {}
|
20 |
|
@@ -115,6 +108,10 @@ def respond(
|
|
115 |
temperature,
|
116 |
top_p,
|
117 |
):
|
|
|
|
|
|
|
|
|
118 |
messages = [{"role": "system", "content": systemmsg}]
|
119 |
|
120 |
for val in history:
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from datasets import load_dataset
|
4 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
import pandas as pd
|
6 |
## Loas I classes
|
7 |
from lib.me import *
|
8 |
|
9 |
## Initialize I class
|
10 |
+
ME = I("","","","")
|
11 |
## Memory dataframe viewer
|
12 |
fastmem = {}
|
13 |
|
|
|
108 |
temperature,
|
109 |
top_p,
|
110 |
):
|
111 |
+
|
112 |
+
global fastmem
|
113 |
+
fastmem = ME.longToShortFast(message)
|
114 |
+
|
115 |
messages = [{"role": "system", "content": systemmsg}]
|
116 |
|
117 |
for val in history:
|