GithubHelp home page GithubHelp logo

alro10 / streamlit-time-series Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 2.0 1.07 MB

API using streamlit for Time Series Analysis

License: Apache License 2.0

Python 95.92% Dockerfile 4.08%
streamlit-dashboard streamlit time-series-analysis streamlit-docker docker-app ibm-cloud cloud cloud-api machine-learning-deploy docker-deployment

streamlit-time-series's Introduction

streamlit time series API

This is a basic API made using streamlit to analyze time series. You can see the deployment, hosted on IBM cloud - Kubernetes Cluster, here: http://159.122.181.167:30498/

alt text

Quick run

  • virtualenv venv -p python3.7

  • source venv/bin/activate

  • pip install -r requirements.txt

Go to src directory

  • streamlit run app.py

Docker

  • docker build -t streamlit-ts-ml:0.1.0 -f Dockerfile .

  • docker run -p 8501:8501 streamlit-ts-ml:0.1.0

Then stop the process with the following command.

$ docker kill <weird_name>
<weird_name>
$

IBM Cloud - Deploy

  • If you need help for deploying on Kubernetes:

  • For tag and push (docker image) to container registry:

    • docker tag streamlit-ts-ml:0.2.0 us.icr.io/ml-api/streamlit-ts-ml:0.2.0

    • docker push us.icr.io/ml-api/streamlit-ts-ml:0.2.0

Go to deploy directory and run the following commands:

  • For deployment:

    • kubectl apply -f deployment.yaml
  • For service:

    • kubectl apply -f service.yaml

    Do not feel angry if the first try does not work, kubernetes and cloud is not too easy...but the result is really awesome!

streamlit-time-series's People

Contributors

alro10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.