Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,8 @@ client = chromadb.Client()
|
|
| 19 |
collection = client.get_or_create_collection("patents")
|
| 20 |
collection.add(documents=docs,ids=ids)
|
| 21 |
|
|
|
|
|
|
|
| 22 |
def text_embedding(input):
|
| 23 |
model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
|
| 24 |
return model.encode(input)
|
|
|
|
| 19 |
collection = client.get_or_create_collection("patents")
|
| 20 |
collection.add(documents=docs,ids=ids)
|
| 21 |
|
| 22 |
+
##
|
| 23 |
+
|
| 24 |
def text_embedding(input):
|
| 25 |
model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
|
| 26 |
return model.encode(input)
|