Summarization Demo App
This is a simple streamlit based Langchain Summarization application with an inline AIMon detector.
Code
The code for the summarization app can be found in the summarization directory.
Setup
Make sure you have the AIMon API key which can be obtained by signing up on the AIMon website.
Installation
-
Clone the repository.
git clone https://github.com/aimonlabs/aimon-python-sdk.git
-
Install the required packages from the
requirements.txt
file specified in this directory.cd examples/streamlit_apps/summarization
pip install -r requirements.txt
API Keys
After signing up on the AIMon website, you can obtain the key by navigating to My Account -> Keys -> Copy API Key
on the UI:
You will need to specify AIMon and OpenAI API keys in a secrets.toml
file inside the
.streamlit
directory.
openai_key=YOUR_OPENAI_API_KEY
aimon_api_key=YOUR_AIMON_API_KEY
Running the Summarization App
The summarization app is a streamlit app. You can run it using this command:
python -m streamlit run langchain_summarization_app.py