Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ os.environ["OPENAI_API_KEY"] = config["OPEN_API_KEY"]
|
|
| 37 |
|
| 38 |
|
| 39 |
# Define the location of the SQLite database
|
| 40 |
-
db_loc = '
|
| 41 |
|
| 42 |
# Create a SQLDatabase instance from the SQLite database URI
|
| 43 |
db = SQLDatabase.from_uri(f"sqlite:///{db_loc}")
|
|
@@ -184,7 +184,7 @@ Here are some documents and their source that may be relevant to the question me
|
|
| 184 |
{question}
|
| 185 |
"""
|
| 186 |
# Load the persisted DB
|
| 187 |
-
persisted_vectordb_location = '
|
| 188 |
#Create a Colelction Name
|
| 189 |
collection_name = 'policy_docs'
|
| 190 |
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
# Define the location of the SQLite database
|
| 40 |
+
db_loc = 'ecomm.db'
|
| 41 |
|
| 42 |
# Create a SQLDatabase instance from the SQLite database URI
|
| 43 |
db = SQLDatabase.from_uri(f"sqlite:///{db_loc}")
|
|
|
|
| 184 |
{question}
|
| 185 |
"""
|
| 186 |
# Load the persisted DB
|
| 187 |
+
persisted_vectordb_location = 'policy_docs'
|
| 188 |
#Create a Colelction Name
|
| 189 |
collection_name = 'policy_docs'
|
| 190 |
|