Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache Files for ETL Processing #72

Merged
merged 5 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from fastapi import FastAPI, responses, status


from controller import task_manager, tokenization_manager, markdown_file_content
from controller import task_manager, tokenization_manager
from misc import util
from handler import config_handler, tokenizer_handler
from request_classes import (
Expand Down Expand Up @@ -100,21 +100,6 @@ def save_tokenizer_as_pickle(request: SaveTokenizer) -> responses.PlainTextRespo
return responses.PlainTextResponse(status_code=status.HTTP_200_OK)


@app.put("/cognition/rework-content/{org_id}/{file_id}/{step}")
def rework_markdown_file_content(
org_id: str, file_id: str, step: str
) -> responses.Response:
try:
r = markdown_file_content.rework_markdown_file_content(
org_id, file_id, step.upper()
)
except Exception:
pass
if not r:
return responses.Response(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR)
return responses.Response(status_code=status.HTTP_200_OK)


@app.put("/config_changed")
def config_changed() -> responses.PlainTextResponse:
config_handler.refresh_config()
Expand Down
128 changes: 0 additions & 128 deletions controller/markdown_file_content.py

This file was deleted.

2 changes: 1 addition & 1 deletion submodules/s3
Loading