PatoFlamejanteTV commited on
Commit
be6685b
Β·
verified Β·
1 Parent(s): 2498dad

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -5
README.md CHANGED
@@ -1,13 +1,38 @@
1
  ---
2
  title: CodeBook
3
- emoji: πŸŒ–
4
- colorFrom: gray
5
- colorTo: purple
6
  sdk: gradio
7
  sdk_version: 5.49.1
8
  app_file: app.py
9
- pinned: false
10
  short_description: Advanced AI workflowing system.
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: CodeBook
3
+ emoji: πŸ†
4
+ colorFrom: purple
5
+ colorTo: red
6
  sdk: gradio
7
  sdk_version: 5.49.1
8
  app_file: app.py
9
+ pinned: true
10
  short_description: Advanced AI workflowing system.
11
  ---
12
 
13
+ # πŸ€– CodeBook AI Workflow Space: Code or Book Generator with Self-Critique
14
+
15
+ This Hugging Face Space refines an **idea** into either:
16
+ - A *complete code project* (pseudocode β†’ snippet β†’ full code), or
17
+ - A *structured story* (Start β†’ Development β†’ Climax β†’ Conclusion β†’ End).
18
+
19
+ After creation, **two AI critics** rate and explain the output, and the system automatically refines it based on their feedback β€” a full *AI self-improvement loop*.
20
+
21
+ ## 🧩 Workflow
22
+
23
+ 1. Input your **idea** and choose **Code mode** or **Book mode**.
24
+ 2. The AI refines your prompt.
25
+ 3. It builds content step-by-step.
26
+ 4. Two critics analyze and rate it.
27
+ 5. The main model refines the output using that feedback.
28
+
29
+ ## πŸ› οΈ Models Used
30
+ - Prompt refiner: `mistralai/Mixtral-8x7B-Instruct-v0.1`
31
+ - Code generator: `codellama/CodeLlama-7b-Instruct-hf`
32
+ - Book generator: `mistralai/Mixtral-8x7B-Instruct-v0.1`
33
+ - Critics: `google/gemma-2-9b-it`, `meta-llama/Meta-Llama-3-8B-Instruct`
34
+
35
+ You can modify these to lighter or open-source models depending on performance limits.
36
+
37
+ ## πŸš€ Deployment
38
+ Push this repo to Hugging Face as a Space and select β€œGradio” as the SDK.