Spaces:
Sleeping
Sleeping
Aiswarya Sankar
commited on
Commit
·
f54449a
1
Parent(s):
fadef9f
Print status
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ def index_repo(textbox: str, dropdown: str) -> Response:
|
|
113 |
activeloop_username = "aiswaryas"
|
114 |
dataset_path = f"hub://{activeloop_username}/" + pathName
|
115 |
invalid_dataset_path = False
|
116 |
-
|
117 |
try:
|
118 |
try:
|
119 |
db = DeepLake(dataset_path=dataset_path,
|
@@ -129,6 +129,9 @@ def index_repo(textbox: str, dropdown: str) -> Response:
|
|
129 |
dataset_path = f"hub://{activeloop_username}/" + pathName + str(random.randint(1,100))
|
130 |
invalid_dataset_path = True
|
131 |
|
|
|
|
|
|
|
132 |
if invalid_dataset_path or db is None or len(db.vectorstore.dataset) == 0:
|
133 |
print("Dataset doesn't exist, fetching data")
|
134 |
try:
|
|
|
113 |
activeloop_username = "aiswaryas"
|
114 |
dataset_path = f"hub://{activeloop_username}/" + pathName
|
115 |
invalid_dataset_path = False
|
116 |
+
|
117 |
try:
|
118 |
try:
|
119 |
db = DeepLake(dataset_path=dataset_path,
|
|
|
129 |
dataset_path = f"hub://{activeloop_username}/" + pathName + str(random.randint(1,100))
|
130 |
invalid_dataset_path = True
|
131 |
|
132 |
+
print(invalid_dataset_path)
|
133 |
+
print(db)
|
134 |
+
print(len(db.vectorstore.dataset))
|
135 |
if invalid_dataset_path or db is None or len(db.vectorstore.dataset) == 0:
|
136 |
print("Dataset doesn't exist, fetching data")
|
137 |
try:
|