Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -72,54 +72,12 @@ Lyon28/Electra-Small
|
|
72 |
- **Pythia** - Research-grade model
|
73 |
- **GPT-Neo** - Open-source GPT alternative
|
74 |
|
75 |
-
## 📋 Persyaratan Sistem
|
76 |
-
|
77 |
-
### Software Requirements
|
78 |
-
```
|
79 |
-
Python 3.8+
|
80 |
-
FastAPI
|
81 |
-
Transformers
|
82 |
-
PyTorch (CPU version)
|
83 |
-
Uvicorn
|
84 |
-
```
|
85 |
-
|
86 |
### Hardware Requirements
|
87 |
- **CPU**: Multi-core processor (minimum 4 cores recommended)
|
88 |
- **RAM**: 8GB minimum, 16GB recommended
|
89 |
- **Storage**: 10GB free space untuk model cache
|
90 |
- **Platform**: Windows, macOS, Linux
|
91 |
|
92 |
-
## 🛠️ Instalasi
|
93 |
-
|
94 |
-
### 1. Clone Repository
|
95 |
-
```bash
|
96 |
-
git clone <repository-url>
|
97 |
-
cd character-ai-chat
|
98 |
-
```
|
99 |
-
|
100 |
-
### 2. Install Dependencies
|
101 |
-
```bash
|
102 |
-
pip install -r requirements.txt
|
103 |
-
```
|
104 |
-
|
105 |
-
### 3. Setup Environment
|
106 |
-
```bash
|
107 |
-
# Optional: Set cache directory
|
108 |
-
export HF_HOME=/path/to/cache
|
109 |
-
export TRANSFORMERS_CACHE=/path/to/cache
|
110 |
-
```
|
111 |
-
|
112 |
-
### 4. Prepare Assets
|
113 |
-
Pastikan file berikut ada di root directory:
|
114 |
-
- `index.html` - Frontend interface
|
115 |
-
- `avatar.png` - Character avatar (optional)
|
116 |
-
- `background.png` - Background image (optional)
|
117 |
-
|
118 |
-
### 5. Run Application
|
119 |
-
```bash
|
120 |
-
python app.py
|
121 |
-
```
|
122 |
-
|
123 |
Aplikasi akan berjalan di: `http://localhost:7860`
|
124 |
|
125 |
## 🎮 Cara Penggunaan
|
@@ -278,32 +236,6 @@ model = "distil-gpt-2" # instead of "gpt-neo"
|
|
278 |
recommended_models = ["distil-gpt-2", "gpt-2-tinny", "bert-tinny"]
|
279 |
```
|
280 |
|
281 |
-
### Debug Mode
|
282 |
-
```bash
|
283 |
-
# Run with debug logging
|
284 |
-
PYTHONPATH=. python -m uvicorn app:app --reload --log-level debug
|
285 |
-
```
|
286 |
-
|
287 |
-
## 🤝 Contributing
|
288 |
-
|
289 |
-
### Development Setup
|
290 |
-
```bash
|
291 |
-
# Install development dependencies
|
292 |
-
pip install -r requirements-dev.txt
|
293 |
-
|
294 |
-
# Run tests
|
295 |
-
python -m pytest tests/
|
296 |
-
|
297 |
-
# Code formatting
|
298 |
-
black app.py
|
299 |
-
flake8 app.py
|
300 |
-
```
|
301 |
-
|
302 |
-
### Adding New Models
|
303 |
-
1. Tambahkan model config di `MODELS` dictionary
|
304 |
-
2. Test dengan `/verify-models` endpoint
|
305 |
-
3. Update documentation
|
306 |
-
|
307 |
### Adding New Features
|
308 |
1. Extend appropriate class (`ConversationMemory`, `CharacterPersonality`, etc.)
|
309 |
2. Add endpoint if needed
|
@@ -324,7 +256,7 @@ MIT License - Lihat file LICENSE untuk detail lengkap.
|
|
324 |
|
325 |
- **Issues**: GitHub Issues
|
326 |
- **Discussions**: GitHub Discussions
|
327 |
-
- **Email**: [
|
328 |
|
329 |
---
|
330 |
|
|
|
72 |
- **Pythia** - Research-grade model
|
73 |
- **GPT-Neo** - Open-source GPT alternative
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
### Hardware Requirements
|
76 |
- **CPU**: Multi-core processor (minimum 4 cores recommended)
|
77 |
- **RAM**: 8GB minimum, 16GB recommended
|
78 |
- **Storage**: 10GB free space untuk model cache
|
79 |
- **Platform**: Windows, macOS, Linux
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
Aplikasi akan berjalan di: `http://localhost:7860`
|
82 |
|
83 |
## 🎮 Cara Penggunaan
|
|
|
236 |
recommended_models = ["distil-gpt-2", "gpt-2-tinny", "bert-tinny"]
|
237 |
```
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
### Adding New Features
|
240 |
1. Extend appropriate class (`ConversationMemory`, `CharacterPersonality`, etc.)
|
241 |
2. Add endpoint if needed
|
|
|
256 |
|
257 |
- **Issues**: GitHub Issues
|
258 |
- **Discussions**: GitHub Discussions
|
259 |
+
- **Email**: [epoystromp.2805@gmail.com]
|
260 |
|
261 |
---
|
262 |
|