Add fastapi deployment

Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
Andras Schmelczer 2022-04-06 19:01:34 +02:00
parent 3c1b02855a
commit bf019cc5a7
16 changed files with 83 additions and 13 deletions

View file

@ -4,9 +4,11 @@ from random import shuffle
from devtools import debug
from predict_domain import predict_domain
from good_ai import process_batch
from good_ai import process_batch, serve
if __name__ == "__main__":
serve(predict_domain)
with open(".cache/ss-data-0/s2-corpus-1583.json") as f:
raw = json.load(f)