Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -472,12 +472,17 @@ def create_index():
|
|
472 |
print(k)
|
473 |
print(ea['file_name'])
|
474 |
#for ii in ind[0]:
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
|
|
|
|
|
|
|
|
480 |
ind.update({k:[ea['file_name']]})
|
|
|
481 |
except Exception as e:
|
482 |
print (e)
|
483 |
|
|
|
472 |
print(k)
|
473 |
print(ea['file_name'])
|
474 |
#for ii in ind[0]:
|
475 |
+
try:
|
476 |
+
if k in ind[0].keys():
|
477 |
+
print("Adding to list")
|
478 |
+
ind[k].append(ea['file_name'])
|
479 |
+
else:
|
480 |
+
print("Adding new Value")
|
481 |
+
ind.update({k:[ea['file_name']]})
|
482 |
+
except Exception as e:
|
483 |
+
print (e)
|
484 |
ind.update({k:[ea['file_name']]})
|
485 |
+
|
486 |
except Exception as e:
|
487 |
print (e)
|
488 |
|