Giter Site home page Giter Site logo

feaselkl / build-a-data-application-with-streamlit Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 9.23 MB

Slides and demos for my talk enabled Build a Data Application with Streamlit

License: GNU General Public License v3.0

HTML 37.00% CSS 2.74% Python 28.56% TSQL 29.31% Dockerfile 2.39%

build-a-data-application-with-streamlit's Introduction

Build a Data Application with Streamlit

This repository provides the supporting code for my presentation entitled Build a Data Application with Streamlit.

I have also made a YouTube playlist of videos in case you would prefer the content in approximately 20-minute chunks.

Branching

This repository includes a series of branches, starting with 01-intro and ending with master. The idea is to traverse each branch in order. This will allow you to see the Chicago Parking Tickets application as we build it. Each branch represents the completed code for that section.

Running the Code

If you are running things locally, follow the relevant cheat sheet in the Cheat Sheets folder.

Requirements

This

Secrets

The code in this repository relies on a file that you'll have to create in code\.streamlit\secrets.toml. Note that you will need to create the .streamlit directory as well as the file. This file will contain all of the secrets that you'll need to follow along. Here is a sample of how it should look:

[db]
connection_string="DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;DATABASE=ChicagoParkingTickets;Trusted_Connection=yes"
# Replace this connection string with whatever is appropriate for your environment.

[aoai]
endpoint = "YOUR ENDPOINT"
key = "YOUR KEY"
deployment_name = "YOUR DEPLOYMENT NAME"

[search]
endpoint = "YOUR ENDPOINT"
key = "YOUR KEY"
index_name = "YOUR INDEX NAME"

[speech]
key = "YOUR KEY"
region = "YOUR REGION"

Parking Tickets Analysis

To run the parking ticket analysis application, you will need SQL Server and a copy of the Chicago Parking Tickets database. You may also need to update the SQL Server connection string in code\.streamlit\secrets.toml if you are not running SQL Server using Windows authentication on localhost.

Azure OpenAI Integration

In order to try out the Azure OpenAI integration, you will need the following resources:

  1. An Azure OpenAI endpoint. You will want to copy the URL endpoint for Azure OpenAI, as well as one of your access keys.
  2. Create a GPT-4 deployment named something like "gpt-4"
  3. Azure AI Search
  4. Azure AI Speech

Note that Azure OpenAI no longer requires explicit approval for using the service in the scenarios we cover. You should not need explicit approval in order to use Azure OpenAI on your Azure subscription.

build-a-data-application-with-streamlit's People

Contributors

feaselkl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.