Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -8,5 +8,44 @@ sdk_version: 1.44.1
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
11 |
+
# ChronoWeave - Interactive Multiverse Story Generation
|
12 |
|
13 |
+
[](YOUR_SPACE_URL_HERE) # <-- Add your space URL later
|
14 |
+
|
15 |
+
This Streamlit application demonstrates the "ChronoWeave" concept: generating multiple, branching narrative timelines based on a core theme using Google's Gemini and Imagen APIs.
|
16 |
+
|
17 |
+
**Concept:**
|
18 |
+
|
19 |
+
Instead of a single linear story, ChronoWeave explores "what if" scenarios. You provide a theme, the number of scenes, the number of parallel timelines you want to explore, and optionally, a specific point or idea for divergence. The application then:
|
20 |
+
|
21 |
+
1. Generates structured story data for multiple timelines using Gemini, ensuring narrative divergence.
|
22 |
+
2. Generates images for each scene in each timeline using Imagen, potentially with subtle visual shifts.
|
23 |
+
3. Generates narration audio for each scene using Gemini Live.
|
24 |
+
4. Composes separate video files for each timeline using MoviePy.
|
25 |
+
|
26 |
+
**How to Use:**
|
27 |
+
|
28 |
+
1. **API Key:** Ensure you have a Google API Key with access to the Gemini API (including v1alpha for Live) and Imagen. Add this key as a Secret named `GOOGLE_API_KEY` in your Hugging Face Space settings.
|
29 |
+
2. **Inputs:**
|
30 |
+
* Enter a story `theme`.
|
31 |
+
* Select the `number of scenes` per timeline.
|
32 |
+
* Select the `number of timelines` to generate (e.g., 2 or 3).
|
33 |
+
* (Optional) Provide a `divergence prompt` hinting at how the timelines should differ (e.g., "What if the hero hesitated?", "Explore a path where they find a map").
|
34 |
+
3. **Generate:** Click the "Generate ChronoWeave" button.
|
35 |
+
4. **Wait:** Generation involves multiple API calls and video processing, which can take time. Status updates will be shown.
|
36 |
+
5. **View:** Once complete, videos for each generated timeline will be displayed.
|
37 |
+
|
38 |
+
**Technology Stack:**
|
39 |
+
|
40 |
+
* Streamlit (UI)
|
41 |
+
* Google Gemini API (Story Generation, Audio Narration - v1alpha Live)
|
42 |
+
* Google Imagen API (Image Generation)
|
43 |
+
* MoviePy (Video Composition)
|
44 |
+
* Hugging Face Spaces (Hosting)
|
45 |
+
|
46 |
+
**Based On:**
|
47 |
+
|
48 |
+
This application builds upon the concepts demonstrated in the "Gemini API: Animated Story Video Generation" Colab Notebook by Yousif Ahmed. Copyright 2025 Google LLC. Licensed under Apache License 2.0.
|
49 |
+
|
50 |
+
**Note:** Generation can be resource-intensive. Higher numbers of scenes or timelines may take longer or hit resource limits on Hugging Face Spaces free tier.
|
51 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|