Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,8 @@ assert AZURE_ACCOUNT_NAME is not None and AZURE_ACCOUNT_NAME != ""
|
|
| 34 |
fs = AzureBlobFileSystem(account_name=AZURE_ACCOUNT_NAME, account_key=AZURE_ACCOUNT_KEY)
|
| 35 |
# Retrieve the documents name whose indexes are stored
|
| 36 |
path_list = fs.ls('gpt/storage_demo')
|
| 37 |
-
global documents_list
|
|
|
|
| 38 |
|
| 39 |
def construct_index(doc):
|
| 40 |
|
|
|
|
| 34 |
fs = AzureBlobFileSystem(account_name=AZURE_ACCOUNT_NAME, account_key=AZURE_ACCOUNT_KEY)
|
| 35 |
# Retrieve the documents name whose indexes are stored
|
| 36 |
path_list = fs.ls('gpt/storage_demo')
|
| 37 |
+
global documents_list
|
| 38 |
+
documents_list = [Path(path).name[:-4] for path in path_list]
|
| 39 |
|
| 40 |
def construct_index(doc):
|
| 41 |
|