Skip to content

harsh4870/docker-ml-faq-rassa

Repository files navigation

docker-ml-faq-rassa

ML FAQ model demo with rasa & Docker

Untitled-2022-12-29-1222

Init Rasa

docker run -v ./:/app \
            -e RASA_PRO_LICENSE= "" \ #Add value
            -e OPENAI_API_KEY= "" \ #Add value
            -e RASA_DUCKLING_HTTP_URL=localhost:8000 \
            europe-west3-docker.pkg.dev/rasa-releases/rasa-pro/rasa-pro:3.9.3 \
            init --template tutorial --no-prompt

Train Model

docker run -v ./:/app \
            -e RASA_PRO_LICENSE= "" \ #Add value
            -e OPENAI_API_KEY= "" \ #Add value
            -e RASA_DUCKLING_HTTP_URL=localhost:8000 \
            europe-west3-docker.pkg.dev/rasa-releases/rasa-pro/rasa-pro:3.9.3 \
            train

Run model

docker run -d -p 5005:5005 -v ./:/app \
            -e RASA_PRO_LICENSE= "" \ #Add value
            -e OPENAI_API_KEY= "" \ #Add value
            -e RASA_DUCKLING_HTTP_URL=localhost:8000 \
            europe-west3-docker.pkg.dev/rasa-releases/rasa-pro/rasa-pro:3.9.3 \
            run -m models --enable-api --cors "*" --debug

WebChat

docker run  -p 5005:5005 -v $(pwd):/app <IMAGE>:3.5.2  run -m models --enable-api --cors "*" --debug

Build the WebChat UI frontend

docker build -t rasa-webchat:v1 -f Dockerfile-webchat .

Run

docker run -p 8080:80 rasa-webchat:v1

Open localhost:8080 in Browser

Screenshot 2023-06-20 at 1 12 45 PM

About

Machine Learning FAQ model demo with rasa & Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published