Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,9 @@ dir_path = 'C:/Users/Rhodri Smith/OneDrive - Cardiff University/Desktop/ChatBot/
|
|
9 |
doc = Document()
|
10 |
|
11 |
#Loop through the directory and print the list of files
|
12 |
-
|
13 |
-
|
|
|
14 |
|
15 |
# Read the document
|
16 |
#for para in document.paragraphs:
|
|
|
9 |
doc = Document()
|
10 |
|
11 |
#Loop through the directory and print the list of files
|
12 |
+
for file in os.listdir(dir_path):
|
13 |
+
print(file)
|
14 |
+
#doc.add_paragraph(file)
|
15 |
|
16 |
# Read the document
|
17 |
#for para in document.paragraphs:
|