DeveloperAkhil commited on
Commit
359361d
1 Parent(s): a733bd8

updated data extraction

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -46,15 +46,16 @@ if os.path.exists(repo_dir):
46
 
47
  # combined_documents will be a list containing the contents of all .md files in the folder
48
 
49
- MarkdownReader = download_loader("MarkdownReader")
50
-
51
- loader = MarkdownReader()
52
- document1 = loader.load_data(file=Path('Akhil-Sharma30.github.io/assets/README.md'))
53
- document2 = loader.load_data(file=Path('Akhil-Sharma30.github.io/content/about.md'))
54
- document3 = loader.load_data(file=Path('Akhil-Sharma30.github.io/content/cv.md'))
55
- document4 = loader.load_data(file=Path('Akhil-Sharma30.github.io/content/post.md'))
56
- document5 = loader.load_data(file=Path('Akhil-Sharma30.github.io/content/opensource.md'))
57
- document6 = loader.load_data(file=Path('Akhil-Sharma30.github.io/content/supervised.md'))
 
58
 
59
  data = document1+ document2 + document3+ document4 + document5+document6
60
 
 
46
 
47
  # combined_documents will be a list containing the contents of all .md files in the folder
48
 
49
+ RemoteReader = download_loader("RemoteReader")
50
+
51
+ loader = RemoteReader()
52
+
53
+ document1 = loader.load_data(url="https://raw.githubusercontent.com/Akhil-Sharma30/Akhil-Sharma30.github.io/main/assets/README.md")
54
+ document2 = loader.load_data(url="https://raw.githubusercontent.com/Akhil-Sharma30/Akhil-Sharma30.github.io/main/content/about.md")
55
+ document3 = loader.load_data(url="https://raw.githubusercontent.com/Akhil-Sharma30/Akhil-Sharma30.github.io/main/content/cv.md")
56
+ document4 = loader.load_data(url="https://raw.githubusercontent.com/Akhil-Sharma30/Akhil-Sharma30.github.io/main/content/post.md")
57
+ document5 = loader.load_data(url="https://raw.githubusercontent.com/Akhil-Sharma30/Akhil-Sharma30.github.io/main/content/opensource.md")
58
+ document6 = loader.load_data(url="https://raw.githubusercontent.com/Akhil-Sharma30/Akhil-Sharma30.github.io/main/content/supervised.md")
59
 
60
  data = document1+ document2 + document3+ document4 + document5+document6
61