ConductorAILabs commited on
Commit
e77c924
·
verified ·
1 Parent(s): ddf6a16

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +32 -22
README.md CHANGED
@@ -9,6 +9,14 @@ app_file: server_app.py
9
  pinned: true
10
  short_description: A small LLM writes, draws & directs original ASCII films
11
  thumbnail: https://conductorailabs-llm-cinema.hf.space/static/share.png
 
 
 
 
 
 
 
 
12
  ---
13
 
14
  # 🎬 LLM Cinema
@@ -17,46 +25,48 @@ A small model — **Cinema**, a fine-tuned **MiniCPM3-4B** — that **writes, dr
17
  directs ORIGINAL short films in ASCII**, and plays them **right here in the page**,
18
  streaming frame by frame. No video, no sound. Just imagination, one frame at a time.
19
 
20
- From a single concept it writes a 13-beat, ~2-minute film: it invents the story,
21
- draws every character in ASCII, picks the terrain (water shimmers, grass, snow, lava…),
22
- the weather and time of day, camera moves (pan / push / shake), and a feeling for each
23
  character — then stages and plays it on a little charcoal terminal.
24
 
 
 
 
 
 
 
 
25
  ## Try it
26
 
27
- - **🎬 Make a film** — type any concept (or hit *Surprise me*) and watch Cinema write,
28
- draw, and play an original film live.
29
- - **🍿 Gallery** — hand-picked films that replay instantly.
30
- - **🌿 Adventure** — a choose-your-own-adventure: pick A/B/C (or type your own) and the
31
- story branches from there.
32
- - **💾 Download** your film as a GIF to share.
33
 
34
  ## How it works
35
 
36
  - **Cinema** (LoRA-fine-tuned MiniCPM3-4B) emits a strict-JSON "movie script": title,
37
  logline, and shots (narration, cast, action, setting, camera, mood, dialogue).
38
- - A from-scratch ASCII engine resolves each character (a 96-sprite library + a draw-on-
39
- demand model for anything new), composes the scene with z-ordered occlusion, textured
40
- floors and set-dressing (sun/moon, clouds, stars, trees), then animates and subtitles it.
41
- - The same frames play three ways: inline here, as a downloadable GIF, and in a terminal.
 
42
 
43
- Built for the **Build Small Hackathon** · model & training pipeline stay private; this
44
  app is the demo.
45
 
46
  ## Configuration
47
 
48
- Set these as Space **secrets**. *Make a film* (and the gallery generator) run on **Cinema**
49
- — the fine-tuned MiniCPM. *Adventure* uses a second, general endpoint that handles branching
50
- better (it falls back to the main one if unset).
51
 
52
  | Secret | Value |
53
  | --- | --- |
54
- | `CLAUDEMOVIES_LLM_URL` | `https://jeff-40528--cinema-serve-serve.modal.run/v1` |
55
  | `CLAUDEMOVIES_LLM_MODEL` | `cinema` |
56
- | `CLAUDEMOVIES_LLM_KEY` | *(the shared bearer key)* |
57
- | `CLAUDEMOVIES_ADV_URL` | `https://jeff-40528--companion-llm-serve.modal.run/v1` |
58
- | `CLAUDEMOVIES_ADV_MODEL` | `Qwen/Qwen2.5-3B-Instruct` |
59
- | `CLAUDEMOVIES_ADV_KEY` | *(the shared bearer key)* |
60
 
61
  The **Gallery** works with no endpoint at all (films are pre-written), so the page always
62
  plays something the instant it loads — even before the model wakes up.
 
9
  pinned: true
10
  short_description: A small LLM writes, draws & directs original ASCII films
11
  thumbnail: https://conductorailabs-llm-cinema.hf.space/static/share.png
12
+ tags:
13
+ - build-small-hackathon
14
+ - off-brand
15
+ - fine-tuned
16
+ - field-notes
17
+ - open-trace
18
+ - off-the-grid
19
+ - llama-cpp
20
  ---
21
 
22
  # 🎬 LLM Cinema
 
25
  directs ORIGINAL short films in ASCII**, and plays them **right here in the page**,
26
  streaming frame by frame. No video, no sound. Just imagination, one frame at a time.
27
 
28
+ From a single concept it writes a 9-beat, ~90-second film: it invents the story, draws
29
+ every character in ASCII, picks the terrain (water shimmers, grass, snow, lava…), the
30
+ weather and time of day, camera moves (pan / push / shake), and a feeling for each
31
  character — then stages and plays it on a little charcoal terminal.
32
 
33
+ ## 🏆 Hackathon submission
34
+
35
+ - **Live Space:** https://conductorailabs-llm-cinema.hf.space
36
+ - **Demo video:** <!-- TODO: paste public link (YouTube / Space / public host) -->
37
+ - **Social post:** <!-- TODO: paste link to your one social-media post about the build -->
38
+ - **Team:** <!-- TODO: every teammate's HF username (each registered + joined the org) -->
39
+
40
  ## Try it
41
 
42
+ - **🎬 Make a film** — type any concept (or hit *Surprise*) and watch Cinema write, draw,
43
+ and play an original film live.
44
+ - **🍿 Gallery** — hand-picked films that replay instantly, even before the model wakes.
45
+ - **🔁 Replay** the current film · **⛶ Fullscreen** (mobile) for a cinema view.
 
 
46
 
47
  ## How it works
48
 
49
  - **Cinema** (LoRA-fine-tuned MiniCPM3-4B) emits a strict-JSON "movie script": title,
50
  logline, and shots (narration, cast, action, setting, camera, mood, dialogue).
51
+ - A from-scratch ASCII engine resolves each character (a sprite library + a draw-on-demand
52
+ model for anything new), composes the scene with z-ordered occlusion, textured floors and
53
+ set-dressing (sun/moon, clouds, stars, trees), then animates and subtitles it.
54
+ - A custom `gr.Server` frontend streams frames over SSE onto a cinema-hall backdrop, with
55
+ reactive lighting that mirrors the on-screen action.
56
 
57
+ Built for the **Build Small Hackathon** · the model & training pipeline stay private; this
58
  app is the demo.
59
 
60
  ## Configuration
61
 
62
+ The serving endpoint is supplied via Space **secrets** (Settings → Variables and secrets) —
63
+ nothing is committed to the repo. Point these at your own OpenAI-compatible endpoint:
 
64
 
65
  | Secret | Value |
66
  | --- | --- |
67
+ | `CLAUDEMOVIES_LLM_URL` | `https://<your-endpoint>/v1` |
68
  | `CLAUDEMOVIES_LLM_MODEL` | `cinema` |
69
+ | `CLAUDEMOVIES_LLM_KEY` | *(your bearer key)* |
 
 
 
70
 
71
  The **Gallery** works with no endpoint at all (films are pre-written), so the page always
72
  plays something the instant it loads — even before the model wakes up.