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