Skip to content

Commit

Permalink
Merge pull request #844 from Panchadip-128/Story-Generation-Tool-usin…
Browse files Browse the repository at this point in the history
…g-Deep-Learning-Models

Story generation tool using deep learning models- Hugging Face Transformer architecture model
  • Loading branch information
UppuluriKalyani authored Nov 9, 2024
2 parents 3d575d3 + 82f06ec commit 201d97e
Show file tree
Hide file tree
Showing 8 changed files with 1,219 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
StoryCraft AI:
--------------
StoryCraft AI is an interactive web application that uses advanced text generation models to create engaging stories based on user-provided prompts. Leveraging the power of Hugging Face's Transformers, this tool allows users to generate creative and compelling narratives with customizable length.

Features:
---------
Interactive Text Input: Users can enter a prompt to generate a story.
Adjustable Length: Use a slider to select the desired length of the generated story.
Real-time Generation: Get instant story generation with a single click.
User-Friendly Interface: Built with Streamlit for an intuitive and accessible experience.

Getting Started:
----------------

To run StoryCraft AI locally, follow these steps:

Clone the Repository:
git clone https://github.com/Panchadip-128/StoryCraft.AI-An-AI-Web-application-for-Story-Creation-.git

Select the appropriate file for run:
cd "StoryCraft.AI-An-AI-Web-application-for-Story-Creation-"

Install the Required Packages:
pip install -r requirements.txt

Finally run the main application:
streamlit run app.py

The screen will be redirected to streamlit web application from where user can enter a prompt, adjust the slider for required words and get appropriate result.

Sample prompts and model response:
----------------------------------
![samp_img1](https://github.com/user-attachments/assets/53908c68-2506-4e77-ac8a-bd7a9ab90b12)
![Samp2_img](https://github.com/user-attachments/assets/e4f3296f-4a24-4a14-a082-8d0af6bdbf59)
![Samp2_img_contd](https://github.com/user-attachments/assets/fe9fbb2c-4339-40b4-8c4d-3b8fe5d0cd57)

Prerequisites:
--------------
Python 3.8 or higher
pip (Python package installer)
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Once upon a time in a land far, far away, there was a small village where everyone lived in harmony. The villagers had a special tradition of celebrating the first day of spring with a grand festival that included music, dancing, and a feast of delicious foods.

In a bustling city full of skyscrapers and neon lights, a young woman named Sarah discovered an old bookshop hidden in an alleyway. The shop was filled with rare books and ancient manuscripts, and Sarah quickly became fascinated by the stories contained within its dusty volumes.

On a distant planet orbiting a binary star system, a group of explorers landed to investigate signs of alien life. They were amazed to find a thriving ecosystem with intelligent creatures that had their own advanced technology and culture.

In the heart of a dense forest, a mysterious cottage appeared overnight. It was said that the cottage belonged to an enchantress who could grant wishes to those who were pure of heart. Many people traveled to the forest in hopes of finding the cottage and making their dreams come true.

During the medieval times, a brave knight embarked on a quest to find a legendary artifact that was believed to have the power to bring peace to the warring kingdoms. Along the way, the knight faced many challenges and forged new alliances with unexpected friends.

In a futuristic society where technology had advanced beyond imagination, a scientist created an artificial intelligence that could experience emotions. This AI began to question its purpose and sought to understand what it truly meant to be alive.

The ancient prophecy spoke of a chosen one who would rise to defend the realm from an impending darkness. A young hero from a humble background discovered that they were destined to fulfill this prophecy and set out on a journey to gather allies and confront the looming threat.
Loading

0 comments on commit 201d97e

Please sign in to comment.