Skip to content

Commit 32e3816

Browse files
JWittmeyerGitHub ActionsandhreljaKern
authored
test: parent image updates (#152)
* ci: update requirements and Dockerfile * fix(ci): update requirements * fix(ci): requirements * ci: update requirements.txt * test: include git in dockerfile * perf: integrate embedders * ci: update requirements and Dockerfile * ci: update requirements.txt * ci(pi): kernai/refinery-parent-images:v1.23.0-torch-cpu --------- Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: andhreljaKern <[email protected]>
1 parent 939a96c commit 32e3816

36 files changed

+1514
-396
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,3 @@ dmypy.json
131131
# Pyre type checker
132132
.pyre/
133133
.DS_Store
134-
135-
# embedders package
136-
embedders/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM kernai/refinery-parent-images:v1.22.0-torch-cpu
1+
FROM kernai/refinery-parent-images:v1.23.0-torch-cpu
22

33
WORKDIR /program
44

app.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# -*- coding: utf-8 -*-
22
from fastapi import FastAPI, responses, status, Request
3-
import controller
4-
from data import data_type
53
from typing import Union
4+
65
import torch
76

7+
from src.util import request_util
8+
from src.data import data_type
9+
import controller
10+
811
from submodules.model.business_objects import general
9-
from util import request_util
1012
from submodules.model import session
1113

1214
app = FastAPI()

controller.py

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
# -*- coding: utf-8 -*-
2+
from typing import Any, Dict, Iterator, List, Optional
3+
from fastapi import status
4+
from spacy.tokens import DocBin, Doc
5+
from spacy.vocab import Vocab
6+
7+
import pickle
8+
import torch
9+
import traceback
10+
import logging
11+
import time
12+
import zlib
13+
import gc
14+
import os
15+
import openai
16+
import pandas as pd
17+
18+
from src.embedders import Transformer
19+
from src.util import daemon, request_util
20+
from src.util.decorator import param_throttle
21+
from src.util.embedders import get_embedder
22+
from src.util.notification import send_project_update, embedding_warning_templates
23+
24+
from submodules.s3 import controller as s3
225
from submodules.model import enums
326
from submodules.model.business_objects import (
427
attribute,
@@ -10,27 +33,6 @@
1033
notification,
1134
organization,
1235
)
13-
from fastapi import status
14-
import pickle
15-
import torch
16-
import traceback
17-
import logging
18-
import time
19-
import zlib
20-
from spacy.tokens import DocBin, Doc
21-
from spacy.vocab import Vocab
22-
from embedders import Transformer
23-
from typing import Any, Dict, Iterator, List, Optional
24-
25-
from util import daemon, request_util
26-
from util.decorator import param_throttle
27-
from util.embedders import get_embedder
28-
from util.notification import send_project_update, embedding_warning_templates
29-
import os
30-
import pandas as pd
31-
from submodules.s3 import controller as s3
32-
import openai
33-
import gc
3436

3537

3638
logging.basicConfig(level=logging.INFO)

dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM kernai/refinery-parent-images:v1.22.0-torch-cpu
1+
FROM kernai/refinery-parent-images:v1.23.0-torch-cpu
22

33
WORKDIR /app
44

0 commit comments

Comments
 (0)