bug: remove streamlit js eval (#82)

add-more-languages
Meng Zhang 2023-04-11 16:12:29 +08:00 committed by GitHub
parent 94e025b663
commit 359fc97f45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 26 deletions

17
poetry.lock generated
View File

@ -2753,21 +2753,6 @@ watchdog = {version = "*", markers = "platform_system != \"Darwin\""}
[package.extras]
snowflake = ["snowflake-snowpark-python"]
[[package]]
name = "streamlit-js-eval"
version = "0.1.5"
description = "A custom Streamlit component to evaluate arbitrary Javascript expressions."
category = "main"
optional = false
python-versions = ">=3.8"
files = [
{file = "streamlit_js_eval-0.1.5-py3-none-any.whl", hash = "sha256:86f092497d1254fd5820bcc3e389a35e9dc638684398a8fa945d0d0b9034fa4a"},
{file = "streamlit_js_eval-0.1.5.tar.gz", hash = "sha256:3fa9502d6895057aaf8922edadfa1659a764b5b01da5dfe7fdd52eeac32658c0"},
]
[package.dependencies]
streamlit = ">=1.0.0"
[[package]]
name = "sympy"
version = "1.11.1"
@ -3562,4 +3547,4 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"]
[metadata]
lock-version = "2.0"
python-versions = "^3.10"
content-hash = "a0e7c6477e505c9e31b7cb862e95d7b85e44f734f4731ea55ad518f0bce8362a"
content-hash = "df2b6abe8684f976034d432760b5475e48695b2d2557ca4ddf32cf591c5d4475"

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"

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
@ -18,7 +17,6 @@ def make_badge_markdown(x: ServiceInfo):
set_page_config(page_title="Home")
badges = " ".join(map(make_badge_markdown, SERVICES))
server_url = get_page_location()["origin"]
st.markdown(
"""
## Tabby [![github star](https://img.shields.io/github/stars/TabbyML/tabby?style=social)](http://github.com/TabbyML/tabby)
@ -28,11 +26,6 @@ st.markdown(
**Congrats, your server is live!**
Below is the URL for your API endpoint.
```
{server_url}
```
### Clients
* [Vim](https://github.com/TabbyML/tabby/tree/main/clients/vim)
@ -40,7 +33,5 @@ Below is the URL for your API endpoint.
""".replace(
"{badges}", badges
).replace(
"{server_url}", server_url
)
)