Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,21 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
library_name: transformers
|
4 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
library_name: transformers
|
4 |
+
---
|
5 |
+
|
6 |
+
to run:
|
7 |
+
|
8 |
+
python3 testqb.py
|
9 |
+
|
10 |
+
inside the testqb file you can configure the limit for num questions to set (current default is limit=2000)
|
11 |
+
|
12 |
+
|
13 |
+
hugging-face model at: nes470/pipeline-as-repo
|
14 |
+
|
15 |
+
inference example:
|
16 |
+
|
17 |
+
from transformers import pipeline
|
18 |
+
|
19 |
+
qa_pipe = pipeline(model="nes470/new-attempt-pipeline-2", trust_remote_code=True)
|
20 |
+
res = qa_pipe(question="This star has 8 planets in it's solar system?", context="context to the question")
|
21 |
+
print(res)
|