Revert "fix: add api endpoint info in admin panel"

This reverts commit 5e9f0768dd.
add-more-languages
Meng Zhang 2023-04-07 00:00:41 +08:00
parent 5e9f0768dd
commit 0d9dff06b7
3 changed files with 263 additions and 553 deletions

802
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,6 @@ 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"
@ -30,7 +29,3 @@ 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"

View File

@ -1,5 +1,4 @@
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
@ -17,7 +16,6 @@ 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(
"""
@ -26,10 +24,7 @@ st.markdown(
{badges}
---
**Congrats, your server is live! Your API Endpoint is:**
```
{api_server}
```
**Congrats, your server is live!**
To get started with Tabby, you can either install the extensions below or use the [Editor](./Editor).
@ -39,7 +34,5 @@ To get started with Tabby, you can either install the extensions below or use th
""".replace(
"{badges}", badges
).replace(
"{api_server}", api_server
)
)