This project provides a Streamlit-based UI for analyzing different types of data (text, images, spreadsheets, and PDFs) using Language Model (LLM) prompts.
-
Make sure you have Docker and Docker Compose installed on your system.
-
Clone this repository:
git clone https://github.com/yourusername/assignment_manish.git cd assignment_manish
-
Create a
.env
file in the project root and add your Unstructured API key and OpenAI API key:UNSTRUCTURED_API_KEY=your_unstructured_api_key_here UNSTRUCTURED_API_URL=https://api.unstructured.io/general/v0/general OPENAI_API_KEY=your_openai_api_key_here
-
Build and run the Docker container:
docker-compose up --build
-
Open your web browser and go to
http://localhost:8501
to access the Streamlit UI.
-
Make sure you have Python 3.9+ installed on your system.
-
Clone this repository:
git clone https://github.com/yourusername/assignment_manish.git cd assignment_manish
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.env
file in the project root and add your Unstructured API key and OpenAI API key:UNSTRUCTURED_API_KEY=your_unstructured_api_key_here UNSTRUCTURED_API_URL=https://api.unstructured.io/general/v0/general OPENAI_API_KEY=your_openai_api_key_here
-
Run the Streamlit app:
streamlit run app/main.py
-
Open your web browser and go to
http://localhost:8501
to access the Streamlit UI.
- Upload a file (text, image, Excel spreadsheet, or PDF) using the file uploader.
- Click on either the "Generate Summary" button to analyze the uploaded content.
- The results will be displayed below the respective buttons.
Note: This implementation uses the Unstructured API for parsing Excel and PDF files, and the OpenAI API for language model processing. Make sure you have valid API keys for both services to use all features.