From cd6eba764c10f1547b509c32a3d9ba270bc32948 Mon Sep 17 00:00:00 2001 From: Etienne Posthumus Date: Mon, 24 Jun 2024 18:05:28 +0200 Subject: [PATCH] Pin uvicorn to last known good version --- requirements.txt | 2 +- src/app/main.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index 14fe68c..3ec24fd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ fastapi==0.65.2 pyoxigraph==0.3.19 -uvicorn>=0.11.3 +uvicorn==0.29.0 aiofiles==0.4.0 httpx==0.21.1 starlette==0.14.2 diff --git a/src/app/main.py b/src/app/main.py index 52170e5..fa6abd4 100644 --- a/src/app/main.py +++ b/src/app/main.py @@ -34,7 +34,7 @@ from rich.traceback import install from .fts import init_fts, search -# from .rdf2vec import init_rdf2vec, rdf2vec_search +from .rdf2vec import init_rdf2vec, rdf2vec_search from .px_util import OxigraphSerialization, SynthQuerySolutions, results_to_triples import rdflib import fizzysearch @@ -150,10 +150,10 @@ init_fts(GRAPH.quads_for_pattern, FTS_FILEPATH) fizzysearch.register([""], search) -# if RDF2VEC_FILEPATH: -# logging.debug(f"RDF2Vec filepath has been specified: {RDF2VEC_FILEPATH}") -# init_rdf2vec(GRAPH.quads_for_pattern, RDF2VEC_FILEPATH) -# fizzysearch.register([""], rdf2vec_search) +if RDF2VEC_FILEPATH: + logging.debug(f"RDF2Vec filepath has been specified: {RDF2VEC_FILEPATH}") + init_rdf2vec(GRAPH.quads_for_pattern, RDF2VEC_FILEPATH) + fizzysearch.register([""], rdf2vec_search) @app.post("/sparql")