Skip to content

Commit 3e66b31

Browse files
Cache Files for ETL Processing (#72)
* remove markdown tokenizer * submodules * submodule merge --------- Co-authored-by: JWittmeyer <jens.wittmeyer@kern.ai>
1 parent 834b4a0 commit 3e66b31

File tree

4 files changed

+3
-146
lines changed

4 files changed

+3
-146
lines changed

app.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from fastapi import FastAPI, responses, status
22

33

4-
from controller import task_manager, tokenization_manager, markdown_file_content
4+
from controller import task_manager, tokenization_manager
55
from misc import util
66
from handler import config_handler, tokenizer_handler
77
from request_classes import (
@@ -101,21 +101,6 @@ def save_tokenizer_as_pickle(request: SaveTokenizer) -> responses.PlainTextRespo
101101
return responses.PlainTextResponse(status_code=status.HTTP_200_OK)
102102

103103

104-
@app.put("/cognition/rework-content/{org_id}/{file_id}/{step}")
105-
def rework_markdown_file_content(
106-
org_id: str, file_id: str, step: str
107-
) -> responses.Response:
108-
try:
109-
r = markdown_file_content.rework_markdown_file_content(
110-
org_id, file_id, step.upper()
111-
)
112-
except Exception:
113-
pass
114-
if not r:
115-
return responses.Response(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR)
116-
return responses.Response(status_code=status.HTTP_200_OK)
117-
118-
119104
@app.put("/config_changed")
120105
def config_changed() -> responses.PlainTextResponse:
121106
config_handler.refresh_config()

controller/markdown_file_content.py

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)