Spaces:
Runtime error
Runtime error
refactoring test
Browse files
test.py
CHANGED
|
@@ -13,8 +13,9 @@ activeloop_service = InitiazlizeActiveloopService()
|
|
| 13 |
|
| 14 |
|
| 15 |
async def process_file(owner, repo, file_type):
|
| 16 |
-
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
async def main():
|
|
@@ -31,7 +32,6 @@ async def main():
|
|
| 31 |
# docs = github_service.load_repo_data(owner, repo, file_type)
|
| 32 |
# activeloop_service.upload_to_activeloop(docs)
|
| 33 |
print(results)
|
| 34 |
-
a = 1
|
| 35 |
# activeloop_service.upload_to_activeloop(docs1)
|
| 36 |
|
| 37 |
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
async def process_file(owner, repo, file_type):
|
| 16 |
+
docs = github_service.load_repo_data(owner, repo, file_type)
|
| 17 |
+
activeloop_service.upload_to_activeloop(docs)
|
| 18 |
+
return docs
|
| 19 |
|
| 20 |
|
| 21 |
async def main():
|
|
|
|
| 32 |
# docs = github_service.load_repo_data(owner, repo, file_type)
|
| 33 |
# activeloop_service.upload_to_activeloop(docs)
|
| 34 |
print(results)
|
|
|
|
| 35 |
# activeloop_service.upload_to_activeloop(docs1)
|
| 36 |
|
| 37 |
|