Spaces:
Running on Zero
Running on Zero
Document AI model pipeline
Browse files
README.md
CHANGED
|
@@ -13,6 +13,8 @@ pinned: false
|
|
| 13 |
|
| 14 |
Paste an HTML game, describe asset roles like `player`, `background`, or `enemy`, and generate a rewritten version of the game with image data embedded directly into the HTML.
|
| 15 |
|
| 16 |
-
The app interprets the shared art style into explicit per-role image prompts, then generates and embeds game assets as base64 data URIs.
|
| 17 |
|
| 18 |
-
If the Space has an `HF_TOKEN` secret, it
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
Paste an HTML game, describe asset roles like `player`, `background`, or `enemy`, and generate a rewritten version of the game with image data embedded directly into the HTML.
|
| 15 |
|
| 16 |
+
The app interprets the shared art style and pasted game code into explicit per-role image prompts, then generates and embeds game assets as base64 data URIs.
|
| 17 |
|
| 18 |
+
If the Space has an `HF_TOKEN` secret, it first uses the text model in `HF_PROMPT_MODEL` to interpret the code, roles, and theme into image prompts. The default prompt model is `Qwen/Qwen2.5-Coder-7B-Instruct`.
|
| 19 |
+
|
| 20 |
+
It then tries the image model in `HF_IMAGE_MODEL` for each role. The default image model is `black-forest-labs/FLUX.1-schnell`. Without `HF_TOKEN`, or if an API call fails, the app uses a local style-aware Pillow fallback that varies watercolor, vector/neon, claymation, oil-painting, anime, pixel-art looks, and common game sprite silhouettes.
|