Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -133,6 +133,7 @@ def split_biomodels(antimony_file_path):
|
|
| 133 |
return final_items
|
| 134 |
|
| 135 |
def create_vector_db(final_items):
|
|
|
|
| 136 |
global db
|
| 137 |
client = chromadb.Client()
|
| 138 |
db = client.create_collection(
|
|
@@ -163,6 +164,7 @@ def create_vector_db(final_items):
|
|
| 163 |
return db
|
| 164 |
|
| 165 |
def generate_response(db, query_text, previous_context):
|
|
|
|
| 166 |
query_results = db.query(
|
| 167 |
query_texts=query_text,
|
| 168 |
n_results=5,
|
|
|
|
| 133 |
return final_items
|
| 134 |
|
| 135 |
def create_vector_db(final_items):
|
| 136 |
+
arbitrary_types_allowed=True
|
| 137 |
global db
|
| 138 |
client = chromadb.Client()
|
| 139 |
db = client.create_collection(
|
|
|
|
| 164 |
return db
|
| 165 |
|
| 166 |
def generate_response(db, query_text, previous_context):
|
| 167 |
+
arbitrary_types_allowed=True
|
| 168 |
query_results = db.query(
|
| 169 |
query_texts=query_text,
|
| 170 |
n_results=5,
|