Update README.md
Browse files
README.md
CHANGED
|
@@ -11,6 +11,7 @@ from 2018-2022 and tested on QA pairs (1k) generated from 2023 articles, scoring
|
|
| 11 |
|
| 12 |
To generate an answer for a given question using this model, please use:
|
| 13 |
|
|
|
|
| 14 |
import keras
|
| 15 |
import keras_nlp
|
| 16 |
|
|
@@ -27,7 +28,7 @@ out = gemma_lm.generate(prompt, max_length=1024)
|
|
| 27 |
ind = out.index('Response') + len('Response')+2
|
| 28 |
print ("Question:", Question)
|
| 29 |
print ("Answer:", out[ind:])
|
| 30 |
-
|
| 31 |
|
| 32 |
|
| 33 |
|
|
|
|
| 11 |
|
| 12 |
To generate an answer for a given question using this model, please use:
|
| 13 |
|
| 14 |
+
```
|
| 15 |
import keras
|
| 16 |
import keras_nlp
|
| 17 |
|
|
|
|
| 28 |
ind = out.index('Response') + len('Response')+2
|
| 29 |
print ("Question:", Question)
|
| 30 |
print ("Answer:", out[ind:])
|
| 31 |
+
```
|
| 32 |
|
| 33 |
|
| 34 |
|