An AI poetry generator app that lets you craft poems based on simple text prompts using the Anthropic API. You can choose from different poem styles, select the number of lines as per your choice and more. Channelise your inner Maya Angelou with LoreCraft!
Introducing.LoreCraft.mp4
-
Clone this repository
Note: The root project directory name is
SonnetVerse
. So keep that in mind while setting up the project -
Install the required packages:
pip install anthropic python-dotenv streamlit
-
For creating a virtual environment run the following command.This ensures that the project runs with the exact versions of packages it requires.
python -m venv venv source venv/bin/activate
-
Create a
.env
file in the root project directory and add your Anthropic API key .Visit Anthropic to get the API key.ANTHROPIC_API_KEY = your-api-key
-
Run the Streamlit app:
streamlit run app.py
This project is licensed under MIT.