Skip to content

AI-Malaysia/audio-newsapi-chatbot

Repository files navigation

audio-newsapi-chatbot

Simple Streamlit app demonstrating LLM interaction with an API

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/

Prerequisites

Before running this app, make sure you have the following installed:

  • Python (version 3.10 or higher)
  • Poetry (dependency management tool)

Installation

  1. Clone the repository:
git clone https://github.com/ai-malaysia/audio-newsapi-chatbot.git
  1. Navigate to the project directory:
cd audio-newsapi-chatbot
  1. Install the dependencies using Poetry:
poetry install
  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published