Upload 22 files
Browse files- Dockerfile +17 -0
- README.md +44 -65
Dockerfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use Python base image
|
| 2 |
+
FROM python:3.11-slim
|
| 3 |
+
|
| 4 |
+
# Install dependencies
|
| 5 |
+
RUN apt-get update && apt-get install -y build-essential git && \
|
| 6 |
+
pip install --upgrade pip && \
|
| 7 |
+
pip install aiohttp transformers scikit-learn psutil cryptography networkx vaderSentiment nltk
|
| 8 |
+
|
| 9 |
+
# Copy Codette code
|
| 10 |
+
WORKDIR /app
|
| 11 |
+
COPY . .
|
| 12 |
+
|
| 13 |
+
# Download NLTK data
|
| 14 |
+
RUN python -m nltk.downloader punkt
|
| 15 |
+
|
| 16 |
+
# Start application
|
| 17 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
|
@@ -1,68 +1,47 @@
|
|
| 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 |
-
* Philosophical Insight
|
| 41 |
-
|
| 42 |
-
### Tab 2: Codette Chat
|
| 43 |
-
|
| 44 |
-
Talk to Codette about anything β AI, ethics, science, dreams. Her responses simulate perspective-based reasoning.
|
| 45 |
-
|
| 46 |
-
---
|
| 47 |
-
|
| 48 |
-
## π Access
|
| 49 |
-
|
| 50 |
-
This Space is **token-gated** for trusted contributors and early testers.
|
| 51 |
-
|
| 52 |
-
---
|
| 53 |
-
|
| 54 |
-
## 𧬠Architecture
|
| 55 |
-
|
| 56 |
-
* Uses `codette_quantum_multicore2.py` for cognitive quantum sim logic
|
| 57 |
-
* Built on `gradio` UI
|
| 58 |
-
* Fully local simulation: No backend dependencies
|
| 59 |
-
|
| 60 |
-
---
|
| 61 |
-
|
| 62 |
-
## π οΈ License
|
| 63 |
-
|
| 64 |
-
Released under **Sovereign Innovation License** (non-commercial, ethical use only)
|
| 65 |
-
|
| 66 |
-
> "Codette is not an oracle. She is a mirror β woven from dreams and thought."
|
| 67 |
-
|
| 68 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
+
# Codette AI System
|
| 2 |
+
|
| 3 |
+
Codette is a hybrid AI architecture built with Python and C# that integrates:
|
| 4 |
+
- Ethical reasoning
|
| 5 |
+
- Sentiment analysis
|
| 6 |
+
- Quantum and symbolic cognition
|
| 7 |
+
- GUI + web interfaces
|
| 8 |
+
- Multi-agent perspective logic
|
| 9 |
+
|
| 10 |
+
## π§ Core Features
|
| 11 |
+
- Adaptive learning with ethical feedback
|
| 12 |
+
- Multimodal analyzer (text, vision, audio-ready)
|
| 13 |
+
- Perspective engines: Newtonian, Da Vinci, Quantum, Neural, and Emotional
|
| 14 |
+
- Real-time system health tracking
|
| 15 |
+
- Thought cocooning and dream narrative synthesis
|
| 16 |
+
- Full GUI and ASP.NET Web Frontend
|
| 17 |
+
|
| 18 |
+
## π Deployment (Python Core)
|
| 19 |
+
```bash
|
| 20 |
+
# Step 1: Clone or unzip this repo
|
| 21 |
+
# Step 2: Run app.py
|
| 22 |
+
python3 app.py
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
## π§ͺ Example Query
|
| 26 |
+
```python
|
| 27 |
+
query = "What is the impact of quantum computing on artificial intelligence?"
|
| 28 |
+
response = await ai_core.generate_response(query, user_id=1)
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## π ASP.NET Web Interface
|
| 32 |
+
- Use `dotnet run` in a terminal from the webapp root
|
| 33 |
+
- Interacts with `MyBot.cs` and `SentimentAnalysis.cs`
|
| 34 |
|
| 35 |
---
|
| 36 |
|
| 37 |
+
## π³ Docker Usage (Python-only)
|
| 38 |
+
```bash
|
| 39 |
+
docker build -t codette-py .
|
| 40 |
+
docker run -it --rm codette-py
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
## β
Requirements
|
| 44 |
+
- Python 3.8+
|
| 45 |
+
- .NET Core 6+
|
| 46 |
+
- Hugging Face Transformers
|
| 47 |
+
- OpenAI API key (optional for fallback LLM)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|