Update README.md
Browse files
README.md
CHANGED
|
@@ -66,8 +66,10 @@ def generate_response(messages, max_new_tokens=1024, temperature=0.1):
|
|
| 66 |
|
| 67 |
1. **Translation Tasks**
|
| 68 |
|
| 69 |
-
```
|
|
|
|
| 70 |
messages = [
|
|
|
|
| 71 |
{"role": "user", "content": "Translate to Wolof: Bassirou Diomaye Faye is the new Senegalese president. He is 44 years old"}
|
| 72 |
]
|
| 73 |
print(generate_response(messages))
|
|
@@ -76,7 +78,9 @@ print(generate_response(messages))
|
|
| 76 |
2. **Code generation**
|
| 77 |
|
| 78 |
```python
|
|
|
|
| 79 |
messages = [
|
|
|
|
| 80 |
{"role": "user", "content": "Bindal ab klaas Python buy wone ni ñuy jëfandikoo dataframe yi ci Pandas"}
|
| 81 |
]
|
| 82 |
print(generate_response(messages))
|
|
@@ -84,8 +88,8 @@ print(generate_response(messages))
|
|
| 84 |
|
| 85 |
3. **Problem Solving**
|
| 86 |
|
| 87 |
-
```
|
| 88 |
-
system_prompt = "You're a Wolof AI assistant. Please always provide detailed and useful answers to the user queries"
|
| 89 |
messages = [
|
| 90 |
{"role": "system", "content": system_prompt},
|
| 91 |
{"role": "user", "content": "Ndax nga mën ma won ni ñuy resolver problème bii: Fatou dafa jënd 3 kilo ceeb, 2 kilo diw ak 5 kilo sukër. Ceeb gi wenn kilo 500 CFA la, diw gi 1200 CFA kilo bi, sukër gi 750 CFA kilo bi. Ñaata la wara fay?"}
|
|
@@ -99,7 +103,6 @@ pprint(generate_response(messages))
|
|
| 99 |
|
| 100 |
```python
|
| 101 |
system_prompt = "You are a skilled Wolof storyteller (Gewël) with deep knowledge of African folktales and traditions. Write engaging stories in Wolof that reflect African cultural values and wisdom."
|
| 102 |
-
|
| 103 |
messages = [
|
| 104 |
{"role": "system", "content": system_prompt},
|
| 105 |
{"role": "user", "content": "Bindal ab léeb ci gaynde gi lekk muus mi"}
|
|
|
|
| 66 |
|
| 67 |
1. **Translation Tasks**
|
| 68 |
|
| 69 |
+
```python
|
| 70 |
+
system_prompt = "You're a Wolof AI assistant. Please always provide detailed and useful answers to the user queries."
|
| 71 |
messages = [
|
| 72 |
+
{"role": "system", "content": system_prompt},
|
| 73 |
{"role": "user", "content": "Translate to Wolof: Bassirou Diomaye Faye is the new Senegalese president. He is 44 years old"}
|
| 74 |
]
|
| 75 |
print(generate_response(messages))
|
|
|
|
| 78 |
2. **Code generation**
|
| 79 |
|
| 80 |
```python
|
| 81 |
+
system_prompt = "You're a Wolof AI assistant. Please always provide detailed and useful answers to the user queries"
|
| 82 |
messages = [
|
| 83 |
+
{"role": "system", "content": system_prompt},
|
| 84 |
{"role": "user", "content": "Bindal ab klaas Python buy wone ni ñuy jëfandikoo dataframe yi ci Pandas"}
|
| 85 |
]
|
| 86 |
print(generate_response(messages))
|
|
|
|
| 88 |
|
| 89 |
3. **Problem Solving**
|
| 90 |
|
| 91 |
+
```python
|
| 92 |
+
system_prompt = "You're a Wolof AI assistant. Please always provide detailed and useful answers to the user queries."
|
| 93 |
messages = [
|
| 94 |
{"role": "system", "content": system_prompt},
|
| 95 |
{"role": "user", "content": "Ndax nga mën ma won ni ñuy resolver problème bii: Fatou dafa jënd 3 kilo ceeb, 2 kilo diw ak 5 kilo sukër. Ceeb gi wenn kilo 500 CFA la, diw gi 1200 CFA kilo bi, sukër gi 750 CFA kilo bi. Ñaata la wara fay?"}
|
|
|
|
| 103 |
|
| 104 |
```python
|
| 105 |
system_prompt = "You are a skilled Wolof storyteller (Gewël) with deep knowledge of African folktales and traditions. Write engaging stories in Wolof that reflect African cultural values and wisdom."
|
|
|
|
| 106 |
messages = [
|
| 107 |
{"role": "system", "content": system_prompt},
|
| 108 |
{"role": "user", "content": "Bindal ab léeb ci gaynde gi lekk muus mi"}
|