@ness you must have your actions.py and then run the two lines on different command lines. Open command prompt from your project directory and run following 2 commands.
1 python -m rasa_core_sdk.endpoint --actions actions
2 python -m rasa_core.run -d models/dialogue -u models/nlu --endpoints endpoints.yml