- Buat virtual environment:
python -m venv venv
- Aktifkan virtual environment:
.\venv\Scripts\activate
- Instal dependensi di dalam virtual environment:
pip install -r requirements.txt
- Deploy
gcloud functions deploy chatbot \
--runtime python310 \
--trigger-http \
--allow-unauthenticated \
--entry-point app
- Run Local
python main.py