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