mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-10 06:14:37 +00:00
Okay!!!!!!!!
This commit is contained in:
parent
4d29fb214c
commit
36ca40a335
3 changed files with 6 additions and 1 deletions
|
@ -36,6 +36,7 @@ ACCESS_TOKEN_EXPIRE_MINUTES = int(os.environ.get("ACCESS_TOKEN_EXPIRE_MINUTES"))
|
|||
ALGORITHM = os.environ.get("ALGORITHM")
|
||||
API_SECRET_KEY = os.environ.get("API_SECRET_KEY")
|
||||
SECRET_KEY = os.environ.get("SECRET_KEY")
|
||||
UNSTRUCTURED_API_KEY = os.environ.get("UNSTRUCTURED_API_KEY")
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
@ -65,7 +66,7 @@ async def upload_files(files: list[UploadFile], token: str = Depends(oauth2_sche
|
|||
|
||||
loader = UnstructuredLoader(
|
||||
file=file.file,
|
||||
api_key="nWDzKHygqnQzbb1pBsxYnMoQ3nQBja",
|
||||
api_key=UNSTRUCTURED_API_KEY,
|
||||
partition_via_api=True,
|
||||
chunking_strategy="basic",
|
||||
max_characters=90000,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue