To running this Rasa Demo, you need: Install requiments (recommend using python 3.8):
-
conda create -n env python=3.8
-
python -m pip install git+https://github.com/RasaHQ/rasalit (Install Rasa and Streamlit)
-
pip install -r requirements.txt
Train model:
-
rasa train
Prepare 2 command line:
- commandline 1: rasa run --enable-api
- commandline 2: streamlit run rasa_streamlit.py
- If run streamlit error "cannot import name 'builder' from 'google.protobuf.internal'" you must :
-
pip uninstall protobuf
-
pip install protobuf==4.21
-
- Run again.
This repository is using for demo Streamlit Web Apps.
Demo Files:
- Command to run streamlit app.
rasa train rasa --enable-api cd streamlit streamlit run file_name.py