fix: add api endpoint info in admin panel
parent
287e2b9c08
commit
5e9f0768dd
File diff suppressed because it is too large
Load Diff
|
|
@ -22,6 +22,7 @@ peft = {git = "https://github.com/huggingface/peft.git", rev = "v0.2.0"}
|
|||
duckdb = "^0.7.1"
|
||||
torch = "^2.0.0"
|
||||
bitsandbytes = "^0.37.2"
|
||||
streamlit_js_eval = "^0.1.5"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pre-commit = "^3.1.1"
|
||||
|
|
@ -29,3 +30,7 @@ pre-commit = "^3.1.1"
|
|||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[[tool.poetry.source]]
|
||||
name = "aliyun-pypi"
|
||||
url = "https://mirrors.aliyun.com/pypi/simple"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import streamlit as st
|
||||
from streamlit_js_eval import get_page_location
|
||||
from utils.service_info import ServiceInfo
|
||||
from utils.streamlit import set_page_config
|
||||
|
||||
|
|
@ -16,6 +17,7 @@ def make_badge_markdown(x: ServiceInfo):
|
|||
|
||||
set_page_config(page_title="Home")
|
||||
|
||||
api_server = get_page_location()["origin"]
|
||||
badges = " ".join(map(make_badge_markdown, SERVICES))
|
||||
st.markdown(
|
||||
"""
|
||||
|
|
@ -24,7 +26,10 @@ st.markdown(
|
|||
{badges}
|
||||
---
|
||||
|
||||
**Congrats, your server is live!**
|
||||
**Congrats, your server is live! Your API Endpoint is:**
|
||||
```
|
||||
{api_server}
|
||||
```
|
||||
|
||||
To get started with Tabby, you can either install the extensions below or use the [Editor](./Editor).
|
||||
|
||||
|
|
@ -34,5 +39,7 @@ To get started with Tabby, you can either install the extensions below or use th
|
|||
|
||||
""".replace(
|
||||
"{badges}", badges
|
||||
).replace(
|
||||
"{api_server}", api_server
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue