https://github.com/askrella/streamlit-llm
https://github.com/askrella/streamlit-llm
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/askrella/streamlit-llm
- Owner: askrella
- Created: 2023-06-13T12:41:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T11:09:15.000Z (about 3 years ago)
- Last Synced: 2024-12-31T13:34:57.730Z (over 1 year ago)
- Language: Python
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Streamlit LLM
This is a Streamlit app that allows you to upload an document or audio file and ask questions about its content. It uses the Llama Index framework, powered by OpenAI's ChatGPT and Hugging Face's Sentence Transformers model, to perform semantic search and provide answers based on your queries.
# Preview

# Supported file types
- All types of raw text documents
- PDF documents
- Audio files (mp3, wav, ogg)
- Video file (mp4)
# Prerequisites
For audio transcription, you need to have [ffmpeg](https://ffmpeg.org/) installed on your system.
# Installation
1. Clone the repository:
```shell
git clone https://github.com/navopw/streamlit-llm.git
```
2. Install the required dependencies:
```shell
pip install -r requirements.txt
```
3. Set up environment variables:
- Create a file named `.env` in the root directory of the project.
- Add your OpenAI API key to the `.env` file:
```text
OPENAI_API_KEY=your_api_key
```
## Usage
1. Run the Streamlit app:
```shell
./start.sh
```
## License
This project is licensed under the MIT License.