An AI-powered sleep app designed to help you analyze and improve your sleep quality through advanced AI recommendations.
First, create a virtual environment:
python -m venv dw_venv
Activate the environment:
-
Windows:
.\dw_venv\Scripts\activate
-
macOS/Linux:
source dw_venv/bin/activate
Install the necessary dependencies:
python -m pip install -r requirements.txt
To start the application, run the following command:
python -m streamlit run app.py
To keep your API keys and other sensitive information secure, add them to the secrets.toml
file.
Example secrets.toml
Configuration:
[general]
GOOGLE_API_KEY = "your_api_key"
-
Visit the Streamlit sharing platform:
-
Click the Create App button on the top right.
-
Choose Yup, I have an app.
Figure 1: Selecting the repository and branch.
- Select the appropriate repository, branch, and starting script (
app.py
).
Figure 2: Reviewing deployment settings.
- Your app will be deployed and accessible via a public URL.
- On the list of apps level edit the app with hamburger menu.
Figure 3: Reviewing deployment settings.
- Update the values accordingly with your
secrets.toml
file
Figure 4: Reviewing deployment settings.
You can also launch this project in GitHub Codespaces for a seamless development experience:
Explore more about this project: