Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
datasets:
|
| 4 |
+
- ParlAI/blended_skill_talk
|
| 5 |
+
- convai-challenge/conv_ai_2
|
| 6 |
+
- allenai/social_i_qa
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
- ru
|
| 10 |
+
metrics:
|
| 11 |
+
- accuracy
|
| 12 |
+
- precision
|
| 13 |
+
- recall
|
| 14 |
+
- perplexity
|
| 15 |
+
- bleu
|
| 16 |
+
- rouge
|
| 17 |
+
base_model:
|
| 18 |
+
- SkillForge45/CyberFuture-1
|
| 19 |
+
new_version: SkillForge45/CyberFuture-2
|
| 20 |
+
pipeline_tag: text-generation
|
| 21 |
+
library_name: transformers
|
| 22 |
+
tags:
|
| 23 |
+
- legal
|
| 24 |
+
---
|
| 25 |
+
# CyberFuture-2 - New version of CyberFuture
|
| 26 |
+
Uptades:
|
| 27 |
+
**-Voice & Text chat**
|
| 28 |
+
**-App.py directly from the model.py file, not from the repository**
|
| 29 |
+
# Installation
|
| 30 |
+
1. Clone the model:
|
| 31 |
+
```bash
|
| 32 |
+
git clone https://huggingface.co/SkillForge45/CyberFuture-2
|
| 33 |
+
```
|
| 34 |
+
2. Install all requirements:
|
| 35 |
+
```bash
|
| 36 |
+
pip install fastapi torch transformers tqdm pyttsx3 datasets speech_recognition pydantic univorn typing
|
| 37 |
+
```
|
| 38 |
+
# Usage
|
| 39 |
+
1. Train the model:
|
| 40 |
+
```bash
|
| 41 |
+
python model.py
|
| 42 |
+
```
|
| 43 |
+
2. Launch the server:
|
| 44 |
+
```bash
|
| 45 |
+
python app.py
|
| 46 |
+
```
|
| 47 |
+
3. Parse chat from server:
|
| 48 |
+
```bash
|
| 49 |
+
curl -X POST "http://localhost:8000/chat/"
|
| 50 |
+
```
|
| 51 |
+
4. Start chatting:
|
| 52 |
+
```bash
|
| 53 |
+
-H "Content-Type: multipart/form-data" \
|
| 54 |
+
-F "prompt=YOUR_QUESTION_HERE" \
|
| 55 |
+
-F "max_length=50" \
|
| 56 |
+
-F "use_voice=false" #for text chat
|
| 57 |
+
### .void
|
| 58 |
+
-H "Content-Type: multipart/form-data" \
|
| 59 |
+
-F "audio_file=@audio.wav" \
|
| 60 |
+
-F "max_length=50" \
|
| 61 |
+
-F "use_voice=true" #for voice chat
|
| 62 |
+
```
|
| 63 |
+
# License
|
| 64 |
+
This model is licensed, see the "LICENSE" for more information
|
| 65 |
+
<small><small>©2025 EidolonAI, "CyberFuture-2"<small><small>
|