Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -472,9 +472,9 @@ def create_index():
|
|
| 472 |
print(k)
|
| 473 |
print(ea['file_name'])
|
| 474 |
#for ii in ind[0]:
|
| 475 |
-
if k in ind
|
| 476 |
print("Adding to list")
|
| 477 |
-
ind[
|
| 478 |
else:
|
| 479 |
print("Adding new Value")
|
| 480 |
ind.update({k:[ea['file_name']]})
|
|
|
|
| 472 |
print(k)
|
| 473 |
print(ea['file_name'])
|
| 474 |
#for ii in ind[0]:
|
| 475 |
+
if k in ind.keys():
|
| 476 |
print("Adding to list")
|
| 477 |
+
ind[k].append(ea['file_name'])
|
| 478 |
else:
|
| 479 |
print("Adding new Value")
|
| 480 |
ind.update({k:[ea['file_name']]})
|