Spaces:
Sleeping
Sleeping
Commit
·
e9da942
1
Parent(s):
2f002e7
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def get_question(context, answer):
|
|
19 |
num_beams=3, # Use fewer beams to generate fewer but higher-quality questions
|
20 |
num_return_sequences=3,
|
21 |
no_repeat_ngram_size=3, # Allow some repetition to avoid generating nonsensical questions
|
22 |
-
max_length=
|
23 |
dec = [question_tokenizer.decode(ids) for ids in outs]
|
24 |
questions = ""
|
25 |
for i, question in enumerate(dec):
|
|
|
19 |
num_beams=3, # Use fewer beams to generate fewer but higher-quality questions
|
20 |
num_return_sequences=3,
|
21 |
no_repeat_ngram_size=3, # Allow some repetition to avoid generating nonsensical questions
|
22 |
+
max_length=128) # Use a shorter max length to focus on generating more relevant questions
|
23 |
dec = [question_tokenizer.decode(ids) for ids in outs]
|
24 |
questions = ""
|
25 |
for i, question in enumerate(dec):
|