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