KushwanthK commited on
Commit
03d32ae
·
verified ·
1 Parent(s): 426b04a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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 = path.name
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