Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge schemas with pephub #358

Merged
merged 25 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion environment/local.dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ export HF_MODEL="BAAI/bge-small-en-v1.5"

export GH_CLIENT_ID=`pass databio/pephub/gh_client_id`
export GH_CLIENT_SECRET=`pass databio/pephub/gh_client_secret`
export BASE_URI=http://localhost:8000
export BASE_URI=http://localhost:8000

export PH_DEV_MODE=true
2 changes: 1 addition & 1 deletion pephub/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from fastapi import Depends, Header, Query
from fastapi.exceptions import HTTPException
from fastapi.security import HTTPBearer
from fastembed.embedding import FlagEmbedding as Embedding
from fastembed.embedding import TextEmbedding as Embedding
from pepdbagent import PEPDatabaseAgent
from pepdbagent.const import DEFAULT_TAG
from pepdbagent.exceptions import ProjectNotFoundError
Expand Down
4 changes: 4 additions & 0 deletions pephub/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from .routers.api.v1.project import project as api_project
from .routers.api.v1.project import projects as api_projects
from .routers.api.v1.search import search as api_search
from .routers.api.v1.schemas import schemas as api_schemas
from .routers.api.v1.schemas import groups as api_groups
from .routers.auth.base import auth as auth_router
from .routers.eido.eido import router as eido_router

Expand Down Expand Up @@ -82,6 +84,8 @@
app.include_router(api_project)
app.include_router(api_projects)
app.include_router(api_search)
app.include_router(api_schemas)
app.include_router(api_groups)
app.include_router(auth_router)
app.include_router(eido_router)

Expand Down
Loading
Loading