make files public
Browse files
api.py
CHANGED
@@ -31,6 +31,9 @@ class Item(BaseModel):
|
|
31 |
|
32 |
app = FastAPI()
|
33 |
|
|
|
|
|
|
|
34 |
@app.on_event("startup")
|
35 |
async def startup_event():
|
36 |
global model, tokenizer, qa_pipeline, embed_model, qdrant
|
|
|
31 |
|
32 |
app = FastAPI()
|
33 |
|
34 |
+
# Mount static files from TestFolder
|
35 |
+
app.mount("/files", StaticFiles(directory="TestFolder"), name="files")
|
36 |
+
|
37 |
@app.on_event("startup")
|
38 |
async def startup_event():
|
39 |
global model, tokenizer, qa_pipeline, embed_model, qdrant
|