Spaces:
Build error
Build error
Tahsin-Mayeesha
commited on
Commit
·
e28d09c
1
Parent(s):
7f182ed
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def generate_questions(model_choice,context,answer,numReturnSequences=1,num_beam
|
|
46 |
for id in generated_ids:
|
47 |
text.append(tokenizer.decode(id,skip_special_tokens=True,clean_up_tokenization_spaces=True).replace('question: ',' '))
|
48 |
|
49 |
-
|
50 |
#correctness_pred = clf.predict(vectorizer.transform([question]))[0]
|
51 |
#if correctness_pred == 1:
|
52 |
# correctness = "Correct"
|
|
|
46 |
for id in generated_ids:
|
47 |
text.append(tokenizer.decode(id,skip_special_tokens=True,clean_up_tokenization_spaces=True).replace('question: ',' '))
|
48 |
|
49 |
+
question = " ".join(text)
|
50 |
#correctness_pred = clf.predict(vectorizer.transform([question]))[0]
|
51 |
#if correctness_pred == 1:
|
52 |
# correctness = "Correct"
|