Custom Ai Agent using OpenAI, Langchain, Streamlit, Wikipedia.
This web app is powered by OpenAI's GPT language model. It allows users to generate YouTube video titles and scripts based on a given topic. The app utilizes langchain's prompt templates, chains and memory mechanisms and Wikipedia API to enhance the quality and coherence of generated content.
- Python
- API key from OpenAI (stored in
apikey.py
)
-
Clone the repository:
git clone https://github.com/tjdharani/Custom-Ai-Agent.git cd Custom-Ai-Agent
-
Install dependencies:
pip install -r requirements.txt
-
Set up the OpenAI API key:
-
Create a file named
apikey.py
in the project root. -
Add your OpenAI API key to
apikey.py
:apikey = "your-api-key-here"
-
-
Run the app:
streamlit run app.py
-
Open your web browser and navigate to the provided URL. http://localhost:8501
-
Enter a topic in the text input box and let the app generate YouTube video titles and scripts for you.
- Adjust the
temperature
parameter in the OpenAI language model initialization for different levels of creativity and randomness in the generated content.
- This project uses the Streamlit library for creating the web interface.
- OpenAI provides the GPT language model used for content generation.
This project is licensed under the MIT License - see the LICENSE file for details.