text summarization llm app
1.0.0
Repo นี้เป็นแอปตัวอย่างที่แสดงการสรุปข้อความโดยใช้ประโยชน์จากโมเดล Minstral Large ที่พร้อมใช้งานจาก AWS Bedrock สำหรับส่วนหน้า UI Streamlit กำลังถูกใช้
text_summarization_llm_app.py
ภายใต้ region_name='us-east-1'
text_summarization_llm_app.py
ภายใต้ region_name='us-east-1'
เช่นเดียวกับบริการ AWS ส่วนใหญ่ คุณจะต้องเสียค่าใช้จ่ายในการใช้งาน
conda create -n "text-summarization-llm-app" python=3.11.0
git clone [email protected]:nethacker/text-summarization-llm-app.git
cd text-summarization-llm-app
pip install -r requirements.txt
เพื่อเรียกใช้การสรุปข้อความโดยใช้ประโยชน์จาก AWS Bedrock (Mistral-Large)
streamlit run text_summarization_llm_app.py
คุณสามารถเข้าถึงแอปได้ที่ http://localhost:8501/
(สมมติว่าคุณมีผู้ใช้ Ubuntu ด้วย /home/ubuntu)
sudo apt -y update
sudo apt -y install build-essential openssl
sudo apt -y install libpq-dev libssl-dev libffi-dev zlib1g-dev
sudo apt -y install python3-pip python3-dev
sudo apt -y install nginx
sudo apt -y install virtualenvwrapper
cd /home/ubuntu
git clone https://github.com/nethacker/text-summarization-llm-app.git
virtualenv text-summarization-llm-app_env
source text-summarization-llm-app_env/bin/activate
cd /home/ubuntu/text-summarization-llm-app
pip install -r requirements.txt
sudo cp systemd/text-summarization-llm-app.service /etc/systemd/system/
sudo systemctl start text-summarization-llm-app
sudo systemctl enable text-summarization-llm-app.service
sudo cp nginx/nginx_text-summarization-llm-app.conf /etc/nginx/sites-available/nginx_text-summarization-llm-app.conf
sudo rm /etc/nginx/sites-enabled/default
sudo ln -s /etc/nginx/sites-available/nginx_text-summarization-llm-app.conf /etc/nginx/sites-enabled
sudo systemctl restart nginx
คุณสามารถเข้าถึงแอปได้ที่ http://{yourhost}