mdevora commited on
Commit
47fdc91
·
1 Parent(s): 84c9646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,8 +65,8 @@ txts_dir = docs_dir + 'txt/'
65
  # with open(f'{docs_dir}intents/{row["intent"]}_{intent_index}.txt', 'w') as f:
66
  # f.write(row['response'])
67
  # previous_row = row
68
- #loader = DirectoryLoader(txts_dir)
69
- #txt_documents = loader.load()
70
  loader = UnstructuredURLLoader(urls=['https://sherlock-ph.readthedocs.io/en/latest/',
71
  'https://tkmatrix.readthedocs.io/en/latest/',
72
  'https://dearwatson.readthedocs.io/en/latest/',
 
65
  # with open(f'{docs_dir}intents/{row["intent"]}_{intent_index}.txt', 'w') as f:
66
  # f.write(row['response'])
67
  # previous_row = row
68
+ loader = DirectoryLoader(txts_dir)
69
+ txt_documents = loader.load()
70
  loader = UnstructuredURLLoader(urls=['https://sherlock-ph.readthedocs.io/en/latest/',
71
  'https://tkmatrix.readthedocs.io/en/latest/',
72
  'https://dearwatson.readthedocs.io/en/latest/',