Skip to content

Commit

Permalink
only website address to be refered entity url
Browse files Browse the repository at this point in the history
  • Loading branch information
KylinMountain committed Aug 8, 2024
1 parent 9d49115 commit c265587
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webserver/configs/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@


class Settings(BaseSettings):
server_host: str = "http://localhost"
server_port: int = 20213
website_address: str = f"http://127.0.0.1:{server_port}"
data: str = (
"./output"
)
Expand Down
2 changes: 1 addition & 1 deletion webserver/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,4 @@ def get_latest_model(model: str):
if __name__ == "__main__":
import uvicorn

uvicorn.run(app, host="localhost", port=settings.server_port)
uvicorn.run(app, port=settings.server_port)
2 changes: 1 addition & 1 deletion webserver/utils/refer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_reference(text: str) -> dict:


def generate_ref_links(data: Dict[str, Set[int]], index_id: str) -> str:
base_url = f"{settings.server_host}:{settings.server_port}/v1/references"
base_url = f"{settings.website_address}/v1/references"
lines = []
for key, values in data.items():
for value in values:
Expand Down

0 comments on commit c265587

Please sign in to comment.