An app to rename faces based on the room name in an HBJSON model.
Install dependencies:
> pip install -r requirements.txt
Start Streamlit
> streamlit run app.py
You can now view your Streamlit app in your browser.
Network URL: http://172.17.0.2:8501
External URL: http://152.37.119.122:8501
Make changes to your app in the app.py
file inside the "app" folder.
You can run the app locally inside Docker to ensure the app will work fine after the deployment.
You need to install Docker on your machine in order to be able to run this command
> pollination-apps run app mostapha --name "Rename Faces by Room Name"
> pollination-apps deploy app --name "Rename Faces by Room Name" --public --api-token "Your api token from Pollination"
In order to configure github actions to deploy your app you will need to:
-
Create a repository on Github
-
Rename the repository's main branch to "master"
-
Add a secret called
POLLINATION_TOKEN
with your Pollination API key as the value -
Create the first release of your app on Github with the tag v0.0.0
-
In all your commit messages, use one of the following commit types;
feat
: A new featurefix
: A bug fixdocs
: Documentation only changesstyle
: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)refactor
: A code change that neither fixes a bug nor adds a featureperf
: A code change that improves performance or sizetest
: Adding missing tests or correcting existing testschore
: Other changes that don't modify src/test/build
: Changes that affect the build system or external dependencies (example: changing the version of a dependency)ci
: Changes to our CI or CD pipelines
Examples of commit messages:
- fix: Remove unused imports
- feat: Add capability to use analysis period
Note that the commit messages with only
fix
andfeat
type will trigger a deployment to Pollination.
Github actions will then package and deploy your code to an app called Rename Faces by Room Name