Skip to content

ryanbales/getting-started-llms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started wiht LLMs

Overview

This is an example of using the OpenAI API in a python application. The python application is a web application hosted in streamlit.

Prerequisites

In order to get your local environment set up, you will need to have the following installed:

Setting up your OpenAI API Key

Once you have your local environment set up, you will need to setup an OpenAI developer accouint and obtain an OpenAI API key. Once you have your API key, you will need to set it as an environment variable. You can do this by editing your .zshrc file or by running the following command:

export OPENAI_ORG_ID="your_organization_id_here"
export OPENAI_API_KEY="your_api_key_here"

Running the app locally

In order to run the app locally, you will need to install the dependencies. You can do this by running the following command:

poetry install

Then, you can run the app locally by running the following command:

poetry run streamlit run app.py

This will start the streamlit application on your local machine. You can access it by going to http://localhost:8501/ in your web browser.

About

Example Application for getting started with LLMs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages