Skip to content

askrella/streamlit-llm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

image

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 installed on your system.

Installation

  1. Clone the repository:

    git clone https://github.com/navopw/streamlit-llm.git
  2. Install the required dependencies:

    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:

      OPENAI_API_KEY=your_api_key
      

Usage

  1. Run the Streamlit app:

    ./start.sh <host> <port>

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published