Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def encode_docs(docs,maxlen = 64, stride = 32):
|
|
74 |
|
75 |
return embeddings, spans, file_names
|
76 |
|
77 |
-
|
78 |
name_to_save = data.name.split("\\")[-1].split(".")[0][:-8]
|
79 |
st = str([query,name_to_save])
|
80 |
hist = st + " " + str(hashlib.sha256(st.encode()).hexdigest())
|
|
|
74 |
|
75 |
return embeddings, spans, file_names
|
76 |
|
77 |
+
def predict(query,data):
|
78 |
name_to_save = data.name.split("\\")[-1].split(".")[0][:-8]
|
79 |
st = str([query,name_to_save])
|
80 |
hist = st + " " + str(hashlib.sha256(st.encode()).hexdigest())
|