File size: 494 Bytes
afa395e
 
 
a9ebf3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
license: mit
library_name: transformers
---

to run: 

python3 testqb.py 

inside the testqb file you can configure the limit for num questions to set (current default is limit=2000) 


hugging-face model at: nes470/pipeline-as-repo

inference example: 

from transformers import pipeline

qa_pipe = pipeline(model="nes470/new-attempt-pipeline-2", trust_remote_code=True)
res = qa_pipe(question="This star has 8 planets in it's solar system?", context="context to the question")
print(res)