Spaces:
Sleeping
Sleeping
suneeln-duke
commited on
Commit
•
5f8cfa3
1
Parent(s):
00d44e0
Added loader loading function
Browse files
main.py
CHANGED
@@ -6,6 +6,8 @@ app = FastAPI()
|
|
6 |
|
7 |
loader = DirectoryLoader("data/txt", glob="*.txt")
|
8 |
|
|
|
|
|
9 |
@app.get("/hello")
|
10 |
def hello():
|
11 |
return {"message": "Hello World"}
|
|
|
6 |
|
7 |
loader = DirectoryLoader("data/txt", glob="*.txt")
|
8 |
|
9 |
+
documents = loader.load()
|
10 |
+
|
11 |
@app.get("/hello")
|
12 |
def hello():
|
13 |
return {"message": "Hello World"}
|