Skip to content

Commit

Permalink
fix dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Apr 11, 2024
1 parent 91d60fc commit a914f05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies = [
"pandas",
"scikit-learn",
"gensim", # For word2vec
"scipy==1.10.1", # https://stackoverflow.com/questions/78279136/importerror-cannot-import-name-triu-from-scipy-linalg-gensim
"scipy ==1.10.1", # https://stackoverflow.com/questions/78279136/importerror-cannot-import-name-triu-from-scipy-linalg-gensim

"requests >=2.23.0",
"rdflib >=6.1.1",
Expand Down Expand Up @@ -130,6 +130,7 @@ post-install-commands = [

# NOTE: we can't run training and integration out of docker (require python 3.8)
[tool.hatch.envs.default.scripts]
dev = "uvicorn src.trapi.main:app --reload --log-level debug"
docs = "mkdocs serve -a localhost:8001 {args}"
fmt = "pre-commit run --all --all-files"
test-dev = "pytest tests/production {args}"
Expand Down
3 changes: 2 additions & 1 deletion src/trapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
],
info=openapi_info,
itrb_url_prefix=itrb_url_prefix,
opentelemetry=True,
opentelemetry=False,
# opentelemetry=settings.opentelemetry_enabled,
dev_server_url="https://openpredict.semanticscience.org",
title='OpenPredict API',
version='1.0.0',
Expand Down

0 comments on commit a914f05

Please sign in to comment.