Story_Poem / README.md
UmaGeeth's picture
Update README.md
eedb2b3 verified

A newer version of the Gradio SDK is available: 6.12.0

Upgrade
metadata
title: Story_Poem
emoji: πŸ“–
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false

🎭 AI Story & Poem Generator

A creative multimodal app that turns images into imaginative stories or poems, with optional themes and characters. The output is generated using AI and also converted to English audio using text-to-speech.


🌟 Features

  • πŸ–ΌοΈ Accepts any image as a creative prompt
  • 🧠 Uses a vision-language model to caption the image (BLIP)
  • ✍️ Generates a story or poem using Falcon LLM
  • 🎧 Converts the text output to English audio with gTTS
  • πŸ“„ Downloadable .txt and .mp3 files

πŸš€ How to Use

  1. Upload an image – choose any photo or illustration.
  2. Enter a theme – like β€œdreams”, β€œfriendship”, β€œmystery”.
  3. (Optional) Add characters – e.g., "a curious cat", "two sisters".
  4. Select either β€œPoem” or β€œStory”.
  5. Hit Generate and enjoy:
    • πŸ“œ A creative text based on the image + theme
    • πŸ”Š English audio narration
    • πŸ“„ Downloads for both

🧠 Models Used

Task Model
Image Captioning Salesforce/blip-image-captioning-base
Text Generation tiiuae/falcon-rw-1b
Text-to-Speech gTTS (Google