Spaces:
Sleeping
Sleeping
Update README.md
Browse files9 unmodified lines101112131415164 unmodified lines2122232425262728293031323334353637383912 unmodified lines5253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761779 unmodified lineslicense: apache-2.0---<img src="https://github.com/liu-zhy/graph-of-thought/assets/26198430/4e8b2511-ce69-4c1a-95a1-5aed4d432a82" width=10% align="left" /># ControlLLM4 unmodified lines## 🤖 Video Demo<!-- <table><tr><td><img width="450" src="https://github.com/liu-zhy/graph-of-thought/assets/26198430/7fe7d1ec-e37e-4ea8-8201-dc639c82ba66" alt="Image 1"></td><td><img width="450" src="https://github.com/liu-zhy/graph-of-thought/assets/26198430/a8bc6644-368b-42e3-844a-9962fdc9bd01" alt="Image 2"></td></tr></table>-->https://github.com/OpenGVLab/ControlLLM/assets/13723743/cf72861e-0e7b-4c15-89ee-7fa1d838d00f## 🏠 System Overview## 🎁 Major Features- Image Perception12 unmodified lines- [ ] Launch online demo## 🛠️Installation### Basic requirements* Linux* Python 3.10+* PyTorch 2.0+* CUDA 11.8+### Clone projectExecute the following command in the root directory:```bashgit clone https://github.com/OpenGVLab/ControlLLM.git```### Install dependenciesSetup environment:```bashconda create -n cllm python=3.10conda activate cllmconda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 -c pytorch -c nvidia```Install [LLaVA](https://github.com/haotian-liu/LLaVA?tab=readme-ov-file):```bashpip install git+https://github.com/haotian-liu/LLaVA.git```Then install other dependencies:```bashcd controlllmpip install -r requirements.txt```## 👨🏫 Get Started### Launch tool servicesPlease put your personal OpenAI Key and [Weather Key](https://www.visualcrossing.com/weather-api) into the corresponding environment variables.```bashcd ./controlllm# openai keyexport OPENAI_API_KEY="..."# openai baseexport OPENAI_BASE_URL="..."# weather api keyexport WEATHER_API_KEY="..."python -m cllm.services.launch --port 10011 --host 0.0.0.0```### Launch ToG service```bashcd ./controlllmexport TOG_SERVICES_PORT=10011export OPENAI_BASE_URL="..."export OPENAI_API_KEY="..."python -m cllm.services.tog.launch --port 10012 --host 0.0.0.0```### Launch gradio demoUse `openssl` to generate the certificate:```shellmkdir certificateopenssl req -x509 -newkey rsa:4096 -keyout certificate/key.pem -out certificate/cert.pem -sha256 -days 365 -nodes```Launch gradio demo:```bashcd ./controlllmexport TOG_PORT=10012export TOG_SERVICES_PORT=10011export RESOURCE_ROOT="./client_resources"export GRADIO_TEMP_DIR="$HOME/.tmp"export OPENAI_BASE_URL="..."export OPENAI_API_KEY="..."python -m cllm.app.gradio --controller "cllm.agents.tog.Controller" --server_port 10024```### Tools as ServicesTake image generation as an example, we first launch the service.```bashpython -m cllm.services.image_generation.launch --port 10011 --host 0.0.0.0```Then, we call the services via python api.```pythonfrom cllm.services.image_generation.api import *setup(port=10011)text2image('A horse')```😬 Launch all in one endpoint```bashpython -m cllm.services.launch --port 10011 --host 0.0.0.0```## 🛠️ Support Tools9 unmodified lines1011121314151617184 unmodified lines2324252627282930313233343536373812 unmodified lines5152535455569 unmodified lineslicense: apache-2.0---<img src="https://cdn-uploads.huggingface.co/production/uploads/64564b0e4a7ffb7d5a47f412/T8e6gFBYtSxo4qPE7cRwK.png" width=10% align="left" /># ControlLLM4 unmodified lines## 🤖 Video Demo<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/64564b0e4a7ffb7d5a47f412/vM9d412xQx2ajNkMew2ut.mp4"></video>## 🏠 System Overview## 🎁 Major Features- Image Perception12 unmodified lines- [ ] Launch online demo## 🛠️ Support Tools
README.md+9-130