Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
|
@@ -507,7 +507,6 @@ def generate_eval(raw_text, N, chunk):
|
|
| 507 |
chain = QAGenerationChain.from_llm(ChatOpenAI(temperature=0))
|
| 508 |
eval_set = []
|
| 509 |
for i, b in enumerate(sub_sequences):
|
| 510 |
-
ques_update.empty()
|
| 511 |
qa = chain.run(b)
|
| 512 |
eval_set.append(qa)
|
| 513 |
ques_update.info(f"Creating Question: {i+1}")
|
|
@@ -515,6 +514,7 @@ def generate_eval(raw_text, N, chunk):
|
|
| 515 |
eval_set_full = list(itertools.chain.from_iterable(eval_set))
|
| 516 |
|
| 517 |
update.empty()
|
|
|
|
| 518 |
|
| 519 |
return eval_set_full
|
| 520 |
|
|
|
|
| 507 |
chain = QAGenerationChain.from_llm(ChatOpenAI(temperature=0))
|
| 508 |
eval_set = []
|
| 509 |
for i, b in enumerate(sub_sequences):
|
|
|
|
| 510 |
qa = chain.run(b)
|
| 511 |
eval_set.append(qa)
|
| 512 |
ques_update.info(f"Creating Question: {i+1}")
|
|
|
|
| 514 |
eval_set_full = list(itertools.chain.from_iterable(eval_set))
|
| 515 |
|
| 516 |
update.empty()
|
| 517 |
+
ques_update.empty()
|
| 518 |
|
| 519 |
return eval_set_full
|
| 520 |
|