Skip to content

Commit

Permalink
Merge pull request streamlit#16 from sfc-gh-jcarroll/cleanups
Browse files Browse the repository at this point in the history
Cleanups
  • Loading branch information
sfc-gh-jcarroll authored Jul 19, 2023
2 parents acbd453 + 7c1e970 commit e0930fd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/python-3
{
"image": "mcr.microsoft.com/devcontainers/python:0-3.11-bullseye",
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
"customizations": {
"codespaces": {
"openFiles": [
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Current examples include:

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://llm-examples.streamlit.app/)

## Get an OpenAI API key
### Get an OpenAI API key

You can get your own OpenAI API key by following the following instructions:

1. Go to https://platform.openai.com/account/api-keys.
2. Click on the `+ Create new secret key` button.
3. Next, enter an identifier name (optional) and click on the `Create secret key` button.

## Enter the OpenAI API key in Streamlit Community Cloud
### Enter the OpenAI API key in Streamlit Community Cloud

To set the OpenAI API key as an environment variable in Streamlit apps, do the following:

Expand All @@ -38,3 +38,12 @@ To set the OpenAI API key as an environment variable in Streamlit apps, do the f
```sh
OPENAI_API_KEY='xxxxxxxxxx'
```

## Run it locally

```sh
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
streamlit run Chatbot.py
```
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ streamlit>=1.24.0
langchain>=0.0.217
openai
duckduckgo-search
anthropic
anthropic>=0.3.0

0 comments on commit e0930fd

Please sign in to comment.