haramkoo commited on
Commit
092a071
·
1 Parent(s): 99c08ee

webapp update 03-07-2022 7:01 pm

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ tok = BartTokenizer.from_pretrained("hyechanjun/interview-question-remake")
8
 
9
  def genQuestion(context):
10
  inputs = tok(context, return_tensors="pt")
11
- output = model.generate(inputs["input_ids"], num_beams=4, max_length=64, min_length=9, num_return_sequences=4, diversity_penalty =1.0)
12
  final_output = ''
13
 
14
  for i in range(4):
 
8
 
9
  def genQuestion(context):
10
  inputs = tok(context, return_tensors="pt")
11
+ output = model.generate(inputs["input_ids"], num_beams=4, max_length=64, min_length=9, num_return_sequences=4, diversity_penalty =1.0, num_beam_groups=2)
12
  final_output = ''
13
 
14
  for i in range(4):