chore: add autodl online image address

This commit is contained in:
FangYin Cheng
2023-09-17 17:00:00 +08:00
parent 03a6677a6a
commit 71b745aa02
4 changed files with 18 additions and 4 deletions

View File

@@ -122,7 +122,7 @@ The core capabilities mainly consist of the following parts:
- [DB-GPT-Web](https://github.com/eosphoros-ai/DB-GPT-Web) ChatUI for DB-GPT
## Image
🌐 [AutoDL Image](https://www.codewithgpu.com/i/csunny/DB-GPT/dbgpt-0.3.1-v2)
🌐 [AutoDL Image](https://www.codewithgpu.com/i/eosphoros-ai/DB-GPT/dbgpt)
## Install
![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white)

View File

@@ -156,7 +156,7 @@ DB-GPT基于 [FastChat](https://github.com/lm-sys/FastChat) 构建大模型运
## Image
🌐 [AutoDL镜像](https://www.codewithgpu.com/i/csunny/DB-GPT/dbgpt-0.3.1-v2)
🌐 [AutoDL镜像](https://www.codewithgpu.com/i/eosphoros-ai/DB-GPT/dbgpt)
🌐 [阿里云镜像](http://dbgpt.site/web/#/p/dc4bb97e0bc15302dbf3a5d5571142dd)

View File

@@ -19,7 +19,7 @@ class PPTLoader(BaseLoader):
docs = []
for slide in pr.slides:
for shape in slide.shapes:
if hasattr(shape, "text") and shape.text is not "":
if hasattr(shape, "text") and shape.text:
docs.append(
Document(
page_content=shape.text, metadata={"source": slide.slide_id}

View File

@@ -3,10 +3,17 @@
# Usage: source /etc/network_turbo && curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/eosphoros-ai/DB-GPT/main/scripts/setup_autodl_env.sh | bash
# autodl usage:
# conda activate dbgpt
# cd /root/DB-GPT
# bash scripts/examples/load_examples.sh
# dbgpt start webserver --port 6006
DEFAULT_PROXY="true"
USE_PROXY=$DEFAULT_PROXY
initialize_conda() {
conda init bash
eval "$(conda shell.bash hook)"
source ~/.bashrc
if [[ $USE_PROXY == "true" ]]; then
@@ -42,10 +49,17 @@ install_dbgpt_packages() {
clean_up() {
rm -rf `pip cache dir`
apt-get clean
rm ~/.bash_history
rm -f ~/.bash_history
history -c
}
clean_local_data() {
rm -rf /root/DB-GPT/pilot/data
rm -rf /root/DB-GPT/pilot/message
rm -f /root/DB-GPT/logs/*
rm -f /root/DB-GPT/logsDbChatOutputParser.log
}
usage() {
echo "USAGE: $0 [--use-proxy]"
echo " [--use-proxy] Use proxy settings (Optional)"