Skip to content

Commit

Permalink
Cache Files for ETL Processing (#72)
Browse files Browse the repository at this point in the history
* remove markdown tokenizer

* submodules

* submodule merge

---------

Co-authored-by: JWittmeyer <[email protected]>
  • Loading branch information
LennartSchmidtKern and JWittmeyer authored Oct 18, 2024
1 parent 834b4a0 commit 3e66b31
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 146 deletions.
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 @@ -101,21 +101,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

0 comments on commit 3e66b31

Please sign in to comment.