Spaces:
Runtime error
Runtime error
manojpatil
commited on
Commit
•
4c267f1
1
Parent(s):
f05ab65
Update app.py
Browse files
app.py
CHANGED
@@ -28,17 +28,14 @@ BASE_DIR = os.getcwd()
|
|
28 |
#replicate api token
|
29 |
os.environ["REPLICATE_API_TOKEN"] = "r8_30xo4KYovs74WNJiDFmZFENUcoXUBJa1B0nat"
|
30 |
|
31 |
-
cache_directory = '/cache'
|
32 |
|
33 |
-
# Create the cache directory if it doesn't exist
|
34 |
-
os.makedirs(cache_directory, exist_ok=True)
|
35 |
|
36 |
|
37 |
#intialize web search wrapper
|
38 |
search = DuckDuckGoSearchRun()
|
39 |
|
40 |
-
#intialize emebding
|
41 |
-
embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2'
|
42 |
|
43 |
#milvus database connection
|
44 |
collection_name = 'LangChainCollection'
|
|
|
28 |
#replicate api token
|
29 |
os.environ["REPLICATE_API_TOKEN"] = "r8_30xo4KYovs74WNJiDFmZFENUcoXUBJa1B0nat"
|
30 |
|
|
|
31 |
|
|
|
|
|
32 |
|
33 |
|
34 |
#intialize web search wrapper
|
35 |
search = DuckDuckGoSearchRun()
|
36 |
|
37 |
+
#intialize emebding model
|
38 |
+
embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2')
|
39 |
|
40 |
#milvus database connection
|
41 |
collection_name = 'LangChainCollection'
|