Skip to content

harsh4870/docker-ml-faq-rassa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

62a9931 · Oct 21, 2024

History

19 Commits
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024
Oct 21, 2024
Aug 22, 2024
Oct 21, 2024
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024
Aug 22, 2024

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