Skip to content

Commit

Permalink
Pin uvicorn to last known good version
Browse files Browse the repository at this point in the history
  • Loading branch information
epoz committed Jun 24, 2024
1 parent 93d61f8 commit cd6eba7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -150,10 +150,10 @@
init_fts(GRAPH.quads_for_pattern, FTS_FILEPATH)
fizzysearch.register(["<http://shmarql.com/fts>"], search)

# if RDF2VEC_FILEPATH:
# logging.debug(f"RDF2Vec filepath has been specified: {RDF2VEC_FILEPATH}")
# init_rdf2vec(GRAPH.quads_for_pattern, RDF2VEC_FILEPATH)
# fizzysearch.register(["<http://shmarql.com/vec>"], 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(["<http://shmarql.com/vec>"], rdf2vec_search)


@app.post("/sparql")
Expand Down

0 comments on commit cd6eba7

Please sign in to comment.