Git Product home page Git Product logo

streamlit_test's Introduction

This repo shows how to host a streamlit webapp on the community cloud or other webhosting platforms (heroku, ploomber) that makes API call to an AI service (beam.cloud) running on a serverless infrastructure for generative AI

The example shown here will do a sentiment analysis of a given sentence and will display the results provided by a sentiment roberta model.

Steps

  1. Perform the installation steps for beam
  2. Run beam deploy beam_app.py and wait for deplyment to finish
  3. Get the url and credentials from the beam dashboard
  4. Start streamlit app using streamlit run streamlit_app_git.py
  5. Enter the credentials
  6. Enter a text and get the sentiment response

A new app streamlit_authenticate.py has been provided that does authentication based on username and password provided. A private google spreadsheet stores the authorized users that can be modified as needed. The details of how to connect streamlit to google sheets through API can be found here.

For local development a folder called .streamlit has to be created in root directory and a secrets.toml inside it where the google API configurations will be stored. For online deployment on streamlit community cloud it will go in Secrets

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.