Spaces:
Sleeping
Sleeping
KushwanthK
commited on
Upload app.py
Browse files
app.py
CHANGED
@@ -73,13 +73,15 @@ def create_pickle_file(filepath):
|
|
73 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
74 |
embeddings = HuggingFaceEmbeddings(model_name=model_name, model_kwargs=model_kwargs, encode_kwargs=encode_kwargs)
|
75 |
|
76 |
-
from pathlib import Path
|
77 |
|
78 |
-
path = Path(filepath)
|
79 |
|
80 |
-
filename =
|
81 |
|
82 |
-
print(filename)
|
|
|
|
|
83 |
|
84 |
from datetime import datetime
|
85 |
|
|
|
73 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
74 |
embeddings = HuggingFaceEmbeddings(model_name=model_name, model_kwargs=model_kwargs, encode_kwargs=encode_kwargs)
|
75 |
|
76 |
+
# from pathlib import Path
|
77 |
|
78 |
+
# path = Path(filepath)
|
79 |
|
80 |
+
filename = filepath.split(".")
|
81 |
|
82 |
+
print(filename[0])
|
83 |
+
|
84 |
+
filename = filename[0]
|
85 |
|
86 |
from datetime import datetime
|
87 |
|