Skip to content

team-vvave/gradio_demo_api

Repository files navigation

Installation

conda create -n demo python=3.10
conda activate demo

conda install ipykernel pillow
pip install clip-retrieval img2dataset

pip install googletrans-py
pip install langchain langchain-huggingface langchain-community
pip install openai==0.28

참고

Run clip-retrieval

tmux new -s vvave_clip_retrieval

conda activate clipretrival
clip-retrieval back --port 13131 --indices-paths indices_paths.json --clip_model hf_clip:laion/CLIP-ViT-H-14-laion2B-s32B-b79K --provide_safety_model False --provide_violence_detector False --enable_mclip_option False --provide_aesthetic_embeddings False

Run demo

tmux new -s vvave_demo_api

conda activate clipretrival
python demo.py --host 0.0.0.0 --port 7000 --workers 1

# 로컬 테스트
python demo.py --port 7777 --workers 1

About

Gradio 기반의 데모 및 API 입니다

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published