Step 2 - Testing Locally
Let's start the web server
python main.py

Once started, you should see the following text in the terminal:

To test the endpoint, let's open a new terminal by clicking the plus button on the right of the terminal panel.

In your new panel, we need to change the directory. Let's navigate to the demo-2 directory. Run the following command:
cd toronto-ai-studio-workshop/demo-2
Now that we're in the demo-2 folder and our server is running. Let's run our test-api.sh
script and test our endpoint. We do that by running the following command:
./test-api.sh Hello world!

The test was successful!
We are now ready to push our image. But before we do, go back to the terminal and kill the terminal that has the web server running. We can do that by clicking on the trash can for that terminal.

Last updated