Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tinesoft/streamlit-playground
A playground to play with Streamlit library
https://github.com/tinesoft/streamlit-playground
ai langchain-python streamlit
Last synced: 3 months ago
JSON representation
A playground to play with Streamlit library
- Host: GitHub
- URL: https://github.com/tinesoft/streamlit-playground
- Owner: tinesoft
- Created: 2024-08-25T19:35:10.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-09-11T04:59:18.000Z (4 months ago)
- Last Synced: 2024-09-27T22:01:33.398Z (4 months ago)
- Topics: ai, langchain-python, streamlit
- Language: Python
- Homepage:
- Size: 396 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A playground to experiment with Streamlit library
> [Streamlit](https://streamlit.io) is a powerful opensource python library that simplifies the creation of **interactive web applications** for **data science** and **AI projects**.
This project is currently composed of 2 sample applications:
* [simple_chat.py](./simple_chat.py): that showcases a simple `ChatGPT`-like applciation built using solely Streamlit
* [llm_chat.py](./llm_chat.py): the same `ChatGPT`-like application interacting with `OpenAPI` using [`Langchain`](https://python.langchain.com/v0.2/docs/introduction/) (requires an `OPENAPI_KEY` to be set in the [.streamlit/secrets.toml](./streamlit) file )## Development Workstation Setup
If you are using `VSCode`, and provided you have [Docker](https://docker.com) installed on your machine, then you can leverage [Dev Containers](https://containers.dev) through this [VSCode extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers),
to easily setup your development environment, with everything needed already installed (namely `Python 3` plus some useful extensions).To do so, simply:
- Checkout the repo
- Open it with `VSCode` (or `IntelliJ`)
- Open the [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and select "Dev Containers: Open Folder in Container..."The repo comes with a preconfigured `devcontainer.json` file (located in `.devcontainer/` folder at root), that `VSCode` will automatically use to install the aforementioned tools, inside a Docker image.
It will even run `pip install -r requiremnts.txt` for you, to automatically install all project dependenciesIf you open the repo in [Github Codespace](https://github.com/features/codespaces), it will also leverage this config file, to setup the codespace, with the same required tools.
## Running a sample
```
streamlit run
```