haramkoo commited on
Commit
93e8a0e
·
1 Parent(s): a9c4623

webapp update 03-07-2022 6:17 pm

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ model = BartForConditionalGeneration.from_pretrained("hyechanjun/interview-quest
7
  tok = BartTokenizer.from_pretrained("hyechanjun/interview-question-remake")
8
 
9
  def genQuestion(context):
10
- inputs = tok.tokenize(context, return_tensors="pt")
11
  output = model.generate(inputs["input_ids"], num_beams=4, max_length=64)
12
 
13
  return tok.batch_decode(output, skip_special_tokens=True, clean_up_tokenization_spaces=False)
 
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)
12
 
13
  return tok.batch_decode(output, skip_special_tokens=True, clean_up_tokenization_spaces=False)