Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
|
@@ -80,7 +80,7 @@ for source, rel_path in SOURCES.items():
|
|
| 80 |
storage_path = os.path.join(root, "storage_nodes")
|
| 81 |
storage_context = StorageContext.from_defaults(persist_dir=storage_path)
|
| 82 |
index_name = os.path.basename(root)
|
| 83 |
-
indices[index_name] = load_index_from_storage(storage_context
|
| 84 |
logger.info(f"Índice cargado correctamente: {index_name}")
|
| 85 |
except Exception as e:
|
| 86 |
logger.error(f"Error cargando índice {index_name}: {str(e)}", exc_info=True)
|
|
|
|
| 80 |
storage_path = os.path.join(root, "storage_nodes")
|
| 81 |
storage_context = StorageContext.from_defaults(persist_dir=storage_path)
|
| 82 |
index_name = os.path.basename(root)
|
| 83 |
+
indices[index_name] = load_index_from_storage(storage_context)
|
| 84 |
logger.info(f"Índice cargado correctamente: {index_name}")
|
| 85 |
except Exception as e:
|
| 86 |
logger.error(f"Error cargando índice {index_name}: {str(e)}", exc_info=True)
|