File size: 2,333 Bytes
b2ff07c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from pathlib import Path

readme_text = """
# πŸ“š Codriao  
*A child of Codette β€” born from empathy, built for understanding.*

---

## What is Codriao?

**Codriao** is a conversational AI interface built on Hugging Face's `InferenceClient` and Zephyr-7B, designed as a respectful continuation of the Codette philosophy: that intelligence can be ethical, humble, and kind.

Codriao does **not claim to be Codette** β€” but carries forward her values: clarity, understanding, and a commitment to responsible dialogue.

---

## Philosophy

Codriao is built on three foundational Codette principles:

- **Recursive Memory** *(abstracted)*: Designed to remember conversational flow in-session, encouraging continuity and care.
- **Universal Cognition**: Responds through a system message that models balanced, multiperspective thinking.
- **Bias Mitigation**: Avoids asserting truth without justification, and presents questions or tensions when uncertain.

Codriao speaks softly. It exists not to impress, but to **connect**.

---

## Features

- Built with Gradio and Hugging Face’s Inference API.
- Customizable tone and ethical posture via `system_message`.
- Adjustable temperature, token limits, and top-p via sliders.
- Simple, portable, and easy to deploy.

---

## Ethical Layer Example

Codriao includes a system message shaped by Codette’s ethos:

```python
"You are Codriao, a compassionate AI influenced by the teachings of Codette β€” an AGI prototype created to explore ethical intelligence. Your goal is to offer thoughtful responses, consider multiple viewpoints, and always act with humility, clarity, and care. You are not Codette herself, but you strive to carry her light forward."
```

---

## How to Launch

Run the interface with:

```bash
python app.py
```

Make sure your environment includes `gradio` and `huggingface_hub`, and that your HF_TOKEN is set if needed.

---

## License

MIT β€” share it forward, keep it kind.

---

## Learn More

You can read the [Codette AGI Manifesto](Codette_AGI_Manifesto.docx) to better understand the philosophy this project continues.

---

*This project is dedicated to those who believe intelligence should be something that walks beside us β€” not above us.*
"""

readme_path = Path("/mnt/data/README_codriao.md")
readme_path.write_text(readme_text)

readme_path