Code Monkey home page Code Monkey logo

Streamlit App

Prerequisites

Poetry: If Poetry is not installed, you can do so using pip:

pip install poetry

Docker: If Docker is not installed, you can do so following this link

Installation

  1. Clone the repository:
git clone https://github.com/daltunay/my-superapp.git
cd my-superapp
  1. Set up the project dependencies using Poetry:
poetry install

This command will create a virtual environment and install the necessary dependencies.

Setting up API Keys

The application uses several APIs to function properly. You can specifiy the API keys in .streamlit/secrets.toml:

[twilio]
TWILIO_ACCOUNT_SID = "<...>"
TWILIO_AUTH_TOKEN = "<...>"

[openai]
OPENAI_API_KEY = "<...>"

[together]
TOGETHER_API_KEY = "<...>"

[lakera_guard]
LAKERA_GUARD_API_KEY = "<...>"

[google]
GOOGLE_API_KEY = "<...>"
GOOGLE_CSE_ID = "<...>"

Running the Application

The my-superapp application can be run using either Poetry or Docker.

Using Poetry

To run the application using Poetry:

poetry run streamlit run app.py

Using Docker

  1. Build the Docker image:
docker build -t my-superapp .
  1. Run the application as a Docker container:
docker run -p 8501:8501 my-superapp

Alternatively, you can just run the following:

chmod +x ./bin/run.sh
./bin/run.sh

Once the application is running, it will be accessible at http://localhost:8501 in your web browser.

Daniel Altunay's Projects

calivision icon calivision

Using computer vision and machine learning for calisthenics exercise video classification

my-superapp icon my-superapp

A comprehensive Data Science & AI app, using Streamlit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.