Spaces:
Runtime error
Runtime error
Commit ·
359361d
1
Parent(s): a733bd8
updated data extraction
Browse files
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 |
-
|
| 50 |
-
|
| 51 |
-
loader =
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
|
|
|
| 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 |
|