Aiswarya Sankar commited on
Commit
a37b147
·
1 Parent(s): 3f3f439

Clean code

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ def index_repo(textbox: str, dropdown: str) -> Response:
132
  dataset_path = f"hub://{activeloop_username}/" + pathName + str(random.randint(1,100))
133
  invalid_dataset_path = True
134
 
135
- if db is None or len(db.vectorstore.dataset) == 0 or invalid_dataset_path:
136
  print("Dataset doesn't exist, fetching data")
137
  try:
138
  docs = []
 
132
  dataset_path = f"hub://{activeloop_username}/" + pathName + str(random.randint(1,100))
133
  invalid_dataset_path = True
134
 
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:
138
  docs = []