Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -475,7 +475,8 @@ def create_index():
|
|
475 |
try:
|
476 |
if k in ind[0].keys():
|
477 |
print("Adding to list")
|
478 |
-
ind[0][k]
|
|
|
479 |
else:
|
480 |
print("Adding new Value")
|
481 |
ind[0].update({k:[ea['file_name']]})
|
|
|
475 |
try:
|
476 |
if k in ind[0].keys():
|
477 |
print("Adding to list")
|
478 |
+
if not ea['file_name'] in ind[0][k]:
|
479 |
+
ind[0][k].append(ea['file_name'])
|
480 |
else:
|
481 |
print("Adding new Value")
|
482 |
ind[0].update({k:[ea['file_name']]})
|