Skip to content

Latest commit

 

History

History
103 lines (61 loc) · 2.15 KB

README.md

File metadata and controls

103 lines (61 loc) · 2.15 KB

📦 DreamWeaver.AI Streamlit App Starter Kit

An AI-powered sleep app designed to help you analyze and improve your sleep quality through advanced AI recommendations.

Setup Instructions

1. Create and Activate a Virtual Environment

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

2. Install Requirements

Install the necessary dependencies:

python -m pip install -r requirements.txt

3. Run the Application

To start the application, run the following command:

python -m streamlit run app.py

Secrets Configuration

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"

Deployment

Deploying on Streamlit Cloud

  1. Visit the Streamlit sharing platform:

    Streamlit Cloud

  2. Click the Create App button on the top right.

  3. Choose Yup, I have an app.

Deployment Step 1 Figure 1: Selecting the repository and branch.

  1. Select the appropriate repository, branch, and starting script (app.py).

Deployment Step 2 Figure 2: Reviewing deployment settings.

  1. Your app will be deployed and accessible via a public URL.

Add your api keys or env variables

  1. On the list of apps level edit the app with hamburger menu.

Deployment Step 3 Figure 3: Reviewing deployment settings.

  1. Update the values accordingly with your secrets.toml file

Deployment Step 4 Figure 4: Reviewing deployment settings.

GitHub Codespaces

You can also launch this project in GitHub Codespaces for a seamless development experience:

Open in GitHub Codespaces

Further Reading

Explore more about this project: