-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy_venv.sh
26 lines (23 loc) · 1.02 KB
/
deploy_venv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Apagar caso não seja a primeira vez
sudo rm -r Chatbot_Programming_Assistant
# Clonar o git
git clone https://github.com/gusmcarreira/Chatbot_Programming_Assistant.git
# Alterar pasta para a do Chatbot
cd Chatbot_Programming_Assistant/Chatbot
# Criar ambiente virtual
python -m venv venv
# Instalar o RASA
venv/bin/python -m pip install rasa==3.1.0
# Instalar outras bibliotecas necessárias
venv/bin/pip install Transformers
venv/bin/pip install Whoosh
# Clone question answering model onto the "custom" directory
cd custom
# sudo apt update
# sudo apt install git-lfs
git lfs clone https://huggingface.co/pierreguillou/bert-base-cased-squad-v1.1-portuguese
cd ..
# venv/bin/pip install spacy
# venv/bin/python -m spacy download pt_core_news_md
# A iniciar o RASA (de maneira a perimitir a integração no website) e o servidor das ações (das funções do Python)
venv/bin/rasa run --enable-api --cors="*" --endpoints "endpoints.yml" --debug --log-file logs/rasa_logs.log & venv/bin/rasa run actions -vv > logs/action_logs.log 2>&1 &