This is a simple application built using OpenAI APIs (whisper-1, tts-1, GPT-3.5-turbo-instruct), streamlit and LangChain, the app utilizes the APIChain
component from LangChain to make external API calls and retrieve data from News api https://newsapi.org/
Before running this app, make sure you have the following installed:
- Python (version 3.10 or higher)
- Poetry (dependency management tool)
- Clone the repository:
git clone https://github.com/ai-malaysia/audio-newsapi-chatbot.git
- Navigate to the project directory:
cd audio-newsapi-chatbot
- Install the dependencies using Poetry:
poetry install
- Usage
streamlit run news_search_audio.py
Make sure to enter your own OpenAI_API and New_sAPI keys in news_search_audio
os.environ["OPENAI_API_KEY"] = "sk-"
os.environ['NEWS_API_KEY'] = "="
*Main reference: https://github.com/marcusschiesser/streamlit-examples