Explore the Langchain Story Generator, a creative AI project within the LangChain framework, that brings your storytelling dreams to life!
- Genre-based Story Generation: ππ Choose your story's genre, making it ideal for various creative applications.
- Custom Sentence Generation: π Specify the number of sentences you want for a personalized narrative.
- Optional Book Details: π Enhance your story by adding extra book information (it's optional!).
The prototype is powered by Gradio, making it super simple to deploy and interact with the Langchain Story Generator. Create a fantastic user interface effortlessly!
Langchain-Story-Generator
βββ Components
β βββ init.py
β βββ src
β βββ handler.py
β βββ main.py
βββ Prototype
β βββ init.py
β βββ interface
βββ init.py
βββ README.md
Clone the repository:
git clone https://github.com/geehaad/Story-Generator.git
cd Story-GeneratorDownload Requirements: Ensure you have the necessary dependencies by running the following command in your terminal:
pip install -r requirements.txt- Run the project itself with a magic touchβexecute
main.pyin theComponents/srcdirectory. - For an enchanting experience, run the interface by invoking
interface.pyin thePrototype/interfacedirectory.
Heads-up! The interface boasts an authentication page. Discover the keys in the interface.py file.
Check the respective directories in this repository for detailed setup and usage instructions.
- Cost of OpenAI API: π° Be mindful of the cost associated with using OpenAI's API (find the price info on the OpenAI platform).
- Domain Specific Knowledge: π Language models may have limitations in domain-specific knowledge.
- ChatGPT Data: π The data in ChatGPT may not always be up-to-date.
Thank you for embarking on this storytelling journey with the Langchain Story Generator! Contribute, create, and ignite your AI development projects with a touch of magic. πͺβ¨
